About 1046 BC, the Zhou Dynasty defeated the last king of the Shang Dynasty and came to power. They changed the capital from Henan to a place near present-day Xi'an, near the Yellow River. The Zhou Dynasty also brought a new theory to China(see the Mandate of Heaven). Almost all dynasties of Chinese rulers continued to repeat this theory. The kings of this dynasty won many new areas. For the first time in the history of China, a large number of people also moved from one area to another area for settlement.