Wang Wujun
Soon, though, with many of Li Huaiguang's subordinates turning against him, he withdrew from the Chang'an region to Hezhong (河中, in modern Yuncheng, Shanxi). Li Sheng, who was then the commander of the Tang forces in the region, then recaptured Chang'an from Zhu Ci in summer 784, and Zhu Ci was killed in flight. Li Sheng welcomed Emperor Dezong back to Chang'an. He subsequently put Ma Sui in charge of the operations against Li Huaiguang, along with Hun Jian and Luo Yuanguang (). Ma was quickly able to get three prefectures previously under Li Huaiguang's control — Jin (), Ci (), and Xi () (all in modern Linfen, Shanxi) to surrender to him, and Emperor Dezong wanted to give him the command of the three prefectures as a new Jincixi Circuit (). Ma declined — pointing out that, pursuant to his own recommendations, the three prefectures had already been promised to Kang Rizhi (), who had stood up against Wang Wujun but whose Shenzhao Circuit (深趙, headquartered in modern Shijiazhuang) had been promised to Wang Wujun as enticement for Wang Wujun to return to the imperial fold. Emperor Dezong much approved of Ma's willingness to yield the three prefectures, and when Kang arrived, Ma transferred the three prefectures to Kang, with their treasuries intact, much to Kang's surprise and happiness. Ma subsequently continued to attack Li Huaiguang's territory, seizing it piece by piece. However, with imperial forces lacking food, the opinion among the imperial opinions largely wanted to try to pardon Li Huaiguang and persuade him to resubmit to imperial authority. Ma opposed, however, and when he was at Chang'an to pay homage to Emperor Dezong in spring 785, he requested one more month of time to subdue Li Huaiguang, and Emperor Dezong agreed. He subsequently persuaded Li Huaiguang's officer Xu Tingguang (), who was defending Changchun Palace (長春宮, in modern Weinan, Shaanxi), to surrender, and then approached Hezhong with Hun and Luo. Li Huaiguang, facing defeat, committed suicide, ending his rebellion, 27 days after Ma had requested one more month to subdue him. Emperor Dezong gave Ma the additional title of "Shizhong" (), the head of the examination bureau of government (), a post considered one for a chancellor.