The An Lushan rebellion was the war of 755-763 in which An Lushan and Shi Siming rose in arms against the Tang, eight years that marked the dynasty's turn from zenith to decline. In his last years Emperor Xuanzong neglected government, favoring Li Linfu and Yang Guozhong while the frontier military governors swelled in power; An Lushan, holding the three commands of Fanyang, Pinglu and Hedong with heavy armies in the northeast and at feud with Yang Guozhong, marched out of Fanyang in the winter of 755 under the pretext of punishing Yang. The rebels took Luoyang and then Tongguan; in 756 with Chang'an in danger Xuanzong fled headlong to Shu, the guards mutinying at Mawei Station on the way — Yang Guozhong killed and Yang Guifei forced to her death — while the heir, Li Heng, went north to Lingwu and was enthroned as Emperor Suzong. Guo Ziyi and Li Guangbi wore the rebels down and borrowed Uyghur cavalry to recover first Chang'an, then Luoyang; the rebel camp bled itself through feuds — An Lushan murdered by his son An Qingxu, Shi Siming submitting and rebelling again, then killed by his own son Shi Chaoyi, whose defeat and suicide in 763 ended the war. The north's economy lay broken and its population shrunk; warlord provincialism, then eunuch dominance, followed in train, and the Tang never regained the full splendor of the Kaiyuan years.