An Lushan rebellion
Death of An Lushan, An Qingxu became Emperor of Yan

The Tang imperial forces were helped by the newly formed dynasty's internal fighting. On 29 January 757, An Lushan was betrayed and killed by his son, An Qingxu, (An Lushan's violent paranoia posed too much of a threat to his entourage). The rebel An Lushan had a Khitan eunuch named Li Zhu'er (李豬兒) (Li Chu-erh) who was working for An Lushan when he was a teenager but An Lushan used a sword to sever his genitals and he almost died after losing multiple pints of blood. An Lushan revived him after smearing ashes on his injury. Li Zhu'er was An Lushan's eunuch after this and highly used and trusted by him. Li Zhu'er and another two men helped carry the obese An Lushan when he was taking off or putting on his clothes. Li Zhu'er helped clothe and unclothe at the Huaqing (Hua-ch'ing) steam baths granted by Emperor Xuanzang. Li Zhuer was approached by people who wanted to assassinate An Lushan after An Lushan became paranoid and blind, stricken with skin disease and started flogging and murdering his subordinates. An Lushan was hacked to death in his stomach and abdomen by Li Zhuer and another conspirator, Yan Zhuang (Yen Chuang) (嚴莊) who was beaten by An before. An Lushan screamed "this is a thief of my own household" as he desperately shook his curtains since he could not find his sword to defend himself. An Lushan's intestines came out of his body as he was hacked to death by Li Zhuer and Yan Zhuang. A horse was once crushed to death under An Lushan's sheer weight due to his fatness.

It was said that An Qingxu was an introvert who couldn't speak to others properly. As a result, Yan Zhuang advised him not to meet officials frequently, and he entrusted most of affairs of state to Yan and created Yan the Prince of Fengyi. He tried to ingratiate his generals by promoting their positions. Meanwhile, with the major general Shi Siming besieging the Tang general Li Guangbi at Taiyuan, An Qingxu ordered Shi to return to his base of Fanyang and leave the general Cai Xide (蔡希德) at Taiyuan to watch Li Guangbi's actions. He also sent the general Yin Ziqi (尹子奇) to attack the city of Suiyang, then under the defense by the Tang generals Zhang Xun and Xu Yuan (許遠), intending to capture Suiyang first and then send Yin south to capture Tang territory south of the Huai River (Yin, however, was locked into a siege of Suiyang that would last until winter 757, stopping any possibility of Yan's advancing south). To show favor to Shi, he created Shi the Prince of Guichuan and made him the jiedushi of Fanyang Circuit; instead, Shi, hoarding the supplies that An Lushan had previously shipped to Fanyang, began to disobey An Qingxu's orders, and An Qingxu could not keep him in check. When the Tang general Guo Ziyi attacked Tong Pass, intending to recapture Chang'an, however, An was able to send forces to repel Guo's attack.
change_case:english_capital, length_constraints:number_paragraphs[2], detectable_content:number_placeholders[4]