The An Lushan rebellion was a civil war in China that lasted from 755 to 763, at the approximate midpoint of the Tang dynasty (618â907). It began as a commandery rebellion attempting to overthrow and replace the Tang government with the rogue Yan dynasty. The rebels succeeded in capturing the imperial capital Chang'an after the emperor had fled to Sichuan, but eventually succumbed to internal divisions and counterattacks by the Tang and their allies. The rebellion spanned the reigns of three Tang emperors: Xuanzong, Suzong, and Daizong.
On 16 December 755, An Lushan, the jiedushi of the Taiyuan Commandery, mobilized his army and marched to Fanyang. An Lushan led the rebellion for two years before he was assassinated by his son An Qingxu. Two years after An Qingxu's ascension, Shi Siming, the governor of Pinglu Commandery and a close ally of An Lushan, killed An Qingxu and usurped the leadership. Shi Siming ruled for two years, but was in turn killed by his own son Shi Chaoyi, who ruled for another two years until the Yan dynasty fell to Tang forces on 17 February 763. There were also other anti-Tang rebel forces, especially those in An Lushan's base area in Hebei, as well as Sogdian forces and other opportunist parties who took advantages of the chaos.