The War of the Eight Princes was the sixteen-year civil war of 291-306 among eight princes of the imperial house of the Western Jin, the direct cause of that dynasty's collapse. Emperor Wu, Sima Yan, having taken the throne from Wei, had enfeoffed the imperial clan as kings to shield the court — and the kings, once installed, each held troops of their own; at his death the heir Emperor Hui was simple-minded, and Empress Jia ruled behind the screen. In 291 she used the Prince of Chu, Wei, to destroy the regent Yang Jun, her own father-in-law, then had the Prince of Runan, Liang, and Wei himself put to death in turn and monopolized the court; in 300, deposing and killing the heir apparent, she gave the Prince of Zhao, Lun, his pretext — he deposed her, and the next year usurped the throne. The princes of Qi, Jiong, Chengdu, Ying, and Hejian, Yong, rose in concert against him, and from then the war spread as the princes slaughtered each other in succession and Luoyang changed hands repeatedly; only in 306, when the Prince of Donghai, Yue, poisoned Emperor Hui and set Emperor Huai on the throne, did it end. The realm's heartland lay ravaged and the frontier hollow; the settled Xiongnu, Jie and Di inside the line grew mighty on the chaos, risings multiplied, and the end was the Disaster of Yongjia and the long split of the Sixteen Kingdoms.