The Upheaval of the Five Barbarians also translated as the Uprising, Rebellion or the Revolt of the Five Barbarians (simplified Chinese: 五胡乱华; traditional Chinese: 五胡亂華; lit. 'Five foreign tribes disrupting China') is a Chinese expression used to refer to a chaotic period of warfare from 304 to 316 during the fall of the Western Jin dynasty. Overlapping with the War of the Eight Princes, these conflicts which involved non-Han groups living within China eventually drove the Jin imperial court out of the northern and southwestern China.
The "Five Barbarians" were the Xiongnu, Jie, Qiang, Di and Xianbei, many of whom had resettled within China during the preceding centuries. Despite the period's name, many Han Chinese and other tribal people like the Wuhuan were also involved, wavering their support between Jin and the separatist regimes. Years of poor administration and civil wars between the ruling princes left the empire open to its disaffected and opportunistic subjects. Ethnic tensions in the Guanzhong region between the Han and the tribes, primarily the Qiang and Di, led to major revolts which resulted in an exodus of refugees into southwestern China. Efforts to force them back to Guanzhong were met with resistance and culminated in the rebellion of the Ba-Di refugee, Li Te in 301.