The Yuan Dynasty was established in 1279 by Kublai Khan after the Mongol invasion of China. Kublai Khan ruled as Emperor until his death in 1294. He established the capital at Dadu, the modern city of Beijing. The Yuan Dynasty ruled over China until 1368, implementing Mongolian and Chinese political and cultural traditions until internal conflicts and natural disasters weakened the empire. Zhu Yuanzhang then led a rebellion that overthrew the Yuan Dynasty and established the Ming Dynasty.