The Shang Dynasty replaced the Xia Dynasty and became the new Central Plains Dynasty. It ruled from northern Henan, southern Hebei, and eastern Shandong, with Bo as its capital at first.In the middle of the Shang Dynasty, Pan Geng moved the capital to Yin, which is today's Anyang, Henan Province, so the Shang Dynasty was also called the Yin Dynasty.