 In 514, Shramana Liu Shaozeng led a Buddhist rebellion in You Prefecture.In 524, Xianbei military families in the Six Frontier Towns rebelled against the Northern Wei and were crushed with the assistance of Rouran chieftain Yujiulü Anagui.The Northern Wei resettled 200,000 residents from the frontier towns to Hebei, where a local famine quickly prompted the migrants to rebel again under the leadership of Du Luozhou in 525.