The Zhou Dynasty defeated the Shang Dynasty using the mandate of heaven and said they where immortal at about 1046 BC, 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. This theory told the people that kings had the order of the gods to rule the country (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, large numbers of persons also moved from one area to other area for settlement.