八王の乱
The War of the Eight Princes lasted for more than a decade, severely weakening the economy and military capacity of the Western Jin. At the same time, the nomads were also being enlisted by the princes as military forces; one such force of Xianbei, under the command of Sima Yue, captured Chang'an in 306.