The Disaster of Yongjia is the capture of 311 (the fifth Yongjia year), when the armies of the Xiongnu Han state stormed Luoyang, capital of the Western Jin, and took Emperor Huai captive — the 'calamity of Yongjia'. The War of the Eight Princes had gutted the Western Jin's strength; famine years and the risings of the drifting poor stripped the court of the provinces; and Liu Yuan, the Xiongnu noble settled inside the frontier, had risen in Bingzhou and founded a state named Han. After Liu Yuan's death his son Liu Cong sent the armies south year after year: in 311 Shi Le annihilated Jin's relief of over 100,000 at Ningpingcheng near Ku county, the grand secretary Wang Yan among the slain; in the same year Liu Yao and Wang Mi stormed Luoyang — the soldiers loosed to sack it, tens of thousands of princes, officials and commons killed, the palaces and temples burned, the imperial tombs dug open, Emperor Huai carried north. In 313 Huai was murdered; Emperor Min was enthroned at Chang'an; in 316 Liu Yao besieged Chang'an and Min surrendered — the Western Jin was done. The Disaster drove the gentry and people of the central plains south in masses: the émigré lords enthroned Prince of Langye, Sima Rui, at Jiankang, founding the Eastern Jin, while the north fell into the whirling succession of the Sixteen Kingdoms — China's long north-south division dating from these years.