On June 12, 784, Li Sheng declared that the assault against Chang'an would be starting, and advanced into Chang'an's vicinity. On June 18, the Han generals Zhang Tingzhi () and Li Xiqian (李希倩, Li Xilie's brother) tried to preempt Li Sheng by attacking him, and Li Sheng defeated them. Zhang Guangsheng, who had been in secret contact with Li Sheng, then persuaded Zhu to flee Chang'an. Zhu did so on June 20, and Li Sheng entered Chang'an, reclaiming it for Tang.
