Tang Xuanzong created the Youzhou Jiedushi from the Sui dynasty's Zhuo Commandery in the year 713 as a buffer against the Kumo Xi and Khitans.
An Lushan and Shi Siming used the Fanyang, Hedong, and Pinglu regions as the base of their rebellion and in 756 the Great Yan dynasty was established.
Due to the volatile situation in Hebei, the court decided to appease the Yan dynasty's former allies and appointed Li Huaixian as the jiedushi of Youzhou-Lulong with semi-autonomous authority.
[2][3][4] In 774, Zhu Ci submitted to Tang authority while his brother, Tao, remained as acting jiedushi of Youzhou.
Tao rebelled in 782 and declared himself Prince of Ji, resulting in Ci's removal from his post.
Ji originally promised his brother, Yong, that he would succeed him, but then designated his son, Gun, as successor.
After killing his father and brother, Zong had difficulty sleeping, often dreaming of his dead family members.
[6][7] After Liu Zong's resignation, Yingzhou and Mozhou (both in Cangzhou), were split off from Youzhou, which was given to the court appointed Zhang Hongjing.
Unlike previous military governors, Hongjing was far removed from the common people and his subordinates mistreated the soldiers.
The soldiers rebelled and removed Hongjing from power, putting control in Zhu Kerong's hands.
Yansi lasted less than four months before he was also killed in another mutiny led by the officer Li Zaiyi.
The next year he was forced to flee from Youzhou due to a mutiny led by his officer, Yang Zhicheng.
He was killed in a disturbance in 841, after which two more men followed in quick succession before Zhang Zhongwu took control with the support of the Tang court.
In 875, Gongsu was defeated by a Uyghur officer, Li Maoxun of the Abusi clan, who took over the Jiedushi title.
Li Keyong returned to Datong in 882 and defeated Keju, but was repelled by Zheng Congdang.