The Ming Dynasty restored Chinese power after the Mongol rule ended due to natural disasters and the death of Kublai Khan. Zhu Yuan Zhang led a rebellion against the Mongols and established absolute rule as the Hongwu Emperor, moving the capital to Nanjing and centralizing control though he later became a despot. His son Yongle took over after his death and moved the capital to Beijing to strengthen defenses, building the Forbidden City. The Ming adopted a tributary system for foreign trade but later turned inward, believing they had everything needed and saw outsiders as a threat. Contact with Europe led to tensions as they refused to pay tribute like other countries. Rebellion, corruption, and invasions eventually caused the fall of