The Yuan dynasty, founded by Kublai Khan in 1271, ruled China as part of the wider Mongol Empire. It collapsed in 1368 when the Ming dynasty, led by Zhu Yuanzhang, took the capital Dadu (modern Beijing) and drove the last Yuan emperor north to the steppe.
The decline came from a mix of factors: recurring floods and famine, a government that relied heavily on unpopular tax and labor demands, a paper money system that fueled inflation, and fierce rivalries among Mongol and Chinese elites. Rebel armies, including the Red Turban movement, spread across the country, and Zhu Yuanzhang eventually outlasted his rivals to unify China.