Cao Cao took advantage of Yuan Shao's death in 202, which resulted in division among his sons, and advanced to the north. In 204, after the Battle of Ye, Cao Cao captured the city of Ye. By the end of 207, after a victorious campaign beyond the frontier against the Wuhuan culminating in the Battle of White Wolf Mountain, Cao Cao achieved complete dominance of the North China Plain. He now controlled China's heartland, including Yuan Shao's former territory, and half of the Chinese population.