Li Baozhen
In 763, Tufan forces made a surprise attack on Chang'an and captured it, forcing Emperor Daizong to flee to Shan Prefecture (陝州, in modern Sanmenxia, Henan). Although Emperor Daizong was able to return to Chang'an soon thereafter, in the aftermaths, absconding Tang soldiers and local bandits grouped together in the five valleys to the south of Chang'an and engaged in banditry that Tang local governments were unable to deal with. Emperor Daizong initially put the official Xue Jingxian () in charge of suppressing the bandits, but Xue was unable to successfully do so even after several months. In 764, Emperor Daizong gave Li Baoyu the additional responsibility of being the military governor of Fengxiang Circuit (鳳翔, headquartered in modern Baoji, Shaanxi) and put him in charge of the operations against the bandits. Li Baoyu used scouts to first discover the hidden headquarters of the bandits' leader Gao Yu () and was thereafter able to capture Gao by a surprise attack commanded by his subordinate Li Chongke (). It was said that within days, the banditry ceased. Also in 764, with another Tufan attack appearing to be looming, Emperor Daizong put Li Baoyu, along with Guo, in charge of defending against the Tufan forces. In light of Li Baoyu's being stationed at Fengxiang, Emperor Daizong made Li Baoyu's cousin Li Baozhen the deputy military governor of Zelu, and thereafter, while Li Baoyu was still titularly the military governor of Zelu, Li Baozhen was in actual command. In 765, when, near the end of Pugu's rebellion, a joint Huige and Tufan force that was intending to aid Pugu approached Chang'an, Li Baoyu was one of the generals who were summoned to defend Chang'an. (After Pugu died of illness around that time, Guo was able to persuade Huige forces to withdraw, and once Huige forces did so, so did Tufan forces.)