Shi Chaoyi
In 755, An Lushan rebelled against Emperor Xuanzong, and soon declared himself the emperor of a new state of Yan. Zhang Zhongzhi served as a major general of the Yan state, but by 762, Yan, then with Shi Chaoyi as its emperor, was nearing final defeat, and Tang forces were entering the heart of its territory north of the Yellow River. Zhang was then defending Heng Prefecture (恆州, in modern Shijiazhuang, Hebei), and Wang Wujun persuaded him to submit to Tang. Zhang agreed and submitted to Tang with the five prefectures that he controlled, and turned against remaining Yan forces. Emperor Xuanzong's grandson Emperor Daizong, then emperor of Tang, bestowed the imperial surname of Li on Zhang, and Zhang thereafter became known as Li Baochen. Li Baochen was allowed to retain control over the territory he had, which was organized into Chengde Circuit, with Li Baochen as its military governor ("Jiedushi"). As Wang contributed in the subsequent campaign that cleared the territory, he was created the Prince of Weichuan.