 It followed the Three Kingdoms period (220–280 AD), which ended with the conquest of Eastern Wu, culminating in the reunification of China.There are two main divisions in the history of the dynasty.The (266–316) was established as a successor state to Cao Wei after Sima Yan usurped the throne and had its capital at Luoyang and later Chang'an (modern Xi'an); Western Jin reunited China in 280 but fairly shortly thereafter fell into a succession crisis, the War of the Eight Princes and suffered from the invasions instigated by the Five Barbarians, who began to establish various new self-proclaimed states along the Yellow River valley in 304 and successfully occupied northern China after the Disaster of Yongjia in 311.