 Toward the end of the Han Dynasty, Yellow Turban Rebellion erupted in Hebei in AD 184 and briefly seized You Prefecture's administrative seat at Ji.The court relied on regional militaries to put down the rebellion and You Prefecture was controlled successively by warlords Liu Yu, Gongsun Zan, Yuan Shao, Yuan Xi and Cao Cao.In 192, Liu Yu was overthrown by his subordinate Gongsun Zan.