Northern Wei was disintegrating rapidly because of revolts of semi-tribal Tuoba military forces that were opposed to being sinicized, when disaster struck the flourishing Ruruan Empire.
It was not long before the tribes in the region north of the Gobi-the Eastern Göktürks-were following invasion routes into China used in previous centuries by Xiongnu, Xianbei, Tuoba, and Ruruan.