The Wei-Xianbei war was a conflict in North China in 352 CE that brought about the downfall of Ran Wei and the end of a brief period of native rule in North China.