Learn about King Di Xin, the final king of the Shang Dynasty and his a repressive regime in this clip from The Story of China. The King squandered his resources and punished those who spoke against his rule. In 1046 BCE, King Wen and his allies claimed that King Di had lost the "Mandate of Heaven." This mandate established the idea that a ruler must be just to keep the approval of the gods. King Wen defeated the Shang Dynasty and established the Zhou Dynasty.