In 349, the Later Zhao regime was subverted by Ran Min, which founded the Ran Wei regime in southern Hebei. During this turmoil, the Murong clan of the Xianbei from the Liaodong region launched a southern invasion. The Murong clan had founded the Kingdom of Yan (Former Yan) in 337 but remained a vassal of the Eastern Jin Dynasty. In 350, Murong Jun, the Prince of Yan, at the suggestion of his half brother Murong Chui, attacked the Later Zhao and Ran Wei in the name of restoring northern China to Jin rule. They quickly captured You. In 352, Murong Jun declared himself emperor and moved the capital from Jicheng () in modern Liaoning to Jicheng () in You Prefecture. Five years later the capital of this kingdom moved south to Ye.