Tian Chengsi
However, Shi did not himself remain under submission to Tang for long, and when he himself rose against Tang and claimed the Yan throne, he made An Zhongzhi a minister and had him defend the region along with Xin Wanbao (). After Shi was assassinated and succeeded by his son Shi Chaoyi in 761, An Zhongzhi refused to serve Shi Chaoyi. He had his officer Wang Wujun kill Xin and then submitted to Tang, allowing Tang forces access to the region through Tumen. Emperor Suzong's son and successor Emperor Daizong accepted his submission, gave him the imperial surname of Li, and further gave him the new personal name of Baochen (meaning "treasured subject"). He, along with fellow Yan generals Xue Song, Tian Chengsi, and Li Huaixian, were allowed to keep their territory, and he was made the military governor of Chengde Circuit (成德, headquartered in modern Shijiazhuang), consisting of six prefectures that he controlled. Emperor Daizong also created him the Duke of Zhao.