Emperor Suzong, finding it difficult to recapture Chang'an just with his own troops, then entered into an alliance with Huige's Bayanchur Khan Yaoluoge Moyanchuo, where Huige forces arrived at Emperor Suzong's then-headquarters at Fengxiang (鳳翔, in modern Baoji) to join the elite Tang forces recalled from the Anxi Circuit and the Western Regions ("Xiyu"). (Emperor Suzong did so by promising that the Huige forces would be permitted to pillage the Chang'an region once it was recaptured.) Li Mi suggested that these forces be used to attack Yan's power base at Fanyang first, to root out the possibility of a Yan recovery. Emperor Suzong chose not to do so and decided to attack Chang'an first, with Li Chu in command of the joint forces. The forces recaptured Chang'an in fall 757, allowing Emperor Suzong to rebuild his administration in the capital. (Huige forces were set to pillage Chang'an, but Li Chu bowed to the Huige prince commanding Huige forces to plead to delay the pillage—pointing out that if pillaging were carried out, the people of the eastern capital Luoyang, then serving as Yan's capital, would resist heavily, and asking that Huige pillage "Luoyang" instead. The Huige prince agreed.) After Emperor Suzong recaptured Chang'an, Li Mi resigned and became a hermit, leaving Li Fuguo, Consort Zhang (who was then created empress), and Li Chu the lead figures at court, and Li Fuguo, in command of the imperial guards, would soon have such paramount powers that even Emperor Suzong was afraid of offending him. Empress Zhang, meanwhile, wanted to make her son Li Shao () crown prince, but Emperor Suzong, believing Li Chu, who was his oldest son, to be capable and accomplished, created him crown prince instead and changed his name to Li Yu. Emperor Suzong also welcomed Emperor Xuanzong back from Jiannan and housed him at a palace converted from Emperor Xuanzong's old residence as an imperial prince, Xingqing Palace ().