He established a capital at Anyi (), the ruins of which are in modern Xia County in southern Shanxi Province, and founded what would be called the Xia dynasty, traditionally considered China's first dynasty.