structural:summarization
An Lushan was a Chinese military general and rebel leader during the Tang dynasty and is primarily known for instigating the An Lushan Rebellion which devastated China and killed millions of people. An Lushan was of Sogdian and Göktürk origin, at least by adoption. He rose to prominence as a general by defending the northeastern Tang frontier from the Khitans and other threats. Through his frequent visits to Chang'an, the Tang capital, An Lushan managed to gain favour with Emperor Xuanzong of Tang and Chancellor Li Linfu. By 751, he had been appointed military governor over three prefectures. After the death of Li Linfu in 753, An Lushan's rivalry with General Geshu Han and Chancellor Yang Guozhong created military tensions within the empire. In late 755, An Lushan instigated open revolt and quickly captured Luoyang, the eastern capital, where in early 756 he proclaimed himself emperor of the new Yan dynasty. While his generals continued his campaigns, An Lushan remained in the Luoyang palace; his health failed and he became increasingly violent and paranoid. In early 757 he was murdered by a eunuch with the support of his son, An Qingxu.