At the same time, however, Xueyantuo, which had been a vassal of both the Eastern Turkic Khaganate and the Western Turkic Khaganate at times, was beginning to strengthen, as was another vassal of the Eastern Turkic Khaganate, Huige, and Ashina Duobi was unable to defeat or contain them.
With An Lushan having been assassinated by his own son An Qingxu early in 757, An Qingxu was the new emperor of Yan, and after Tang and Huige forces recaptured Chang'an, they recaptured Luoyang as well, forcing An Qingxu to flee to Yecheng.