The Old Dynasty would be overthrown through rebellion and bloodshed. Dynasties would be attacked internally through peasant revolts and externally through hostile invasions. Eventually a new Dynasty would emerge and seize power. The New Dynasty gains power, restores peace and order, and claims to have the Mandate of Heaven. The dynastic cycle lasted until the end of the Ming Dynasty in 1644 CE.