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 fear of repeating Tang's commandery secessionism also led the Song dynasty that followed to distrust and oppress prominent military commanders even when invaded by hostile foreign states such as Liao, Western Xia and Jin.
[3] This was apparently the first of several revolutionary events either led by or intimately connected with the merchants and tradespeople involved with the international commerce often referred to as the Silk Road.
However, back in the increasingly financially challenged Chinese heartland, the Sogdian-Turkic General An Lushan had worked himself into a position of trust with the Tang emperor Xuanzong and his consort Yang Guifei.
He took advantage of various circumstances, such as popular discontent with an extravagant Tang court, the synchronous Sogdian-involved Abbasid Revolution against the Umayyad dynasty,[10] and eventually the absence of strong troops guarding the palace coupled with a string of natural disasters.
An Lushan was very influential in the Tang court, his close relationship with Emperor Xuanzong led to him being adopted by the imperial concubine Yang Guifei.
He moved rapidly along the Grand Canal and captured the "Eastern Capital" city of Luoyang on 18 January 756,[13][14] defeating the poorly supplied General Feng Changqing.
Although his army, under Linghu Chao, was numerous, it was unable to make further territorial gains due to the failure to wrest control of Yongqiu (modern Qi County, Kaifeng, in Henan) and (later) the nearby Suiyang from the Tang defenders led by Zhang Xun.
Originally, An Lushan's forces were blocked from the main imperial (or "Western") capital at Chang'an (modern Xi'an), by loyal troops placed in nearly impregnable defensive positions in the intervening high mountain passes of Tongguan.
Unfortunately for Chang'an, the two generals in charge of the troops at Tong Pass, Gao Xianzhi and Feng Changqing, were executed due to a court intrigue involving the powerful eunuch Bian Lingcheng.
The generals, after much discussion, decided to borrow troops from an offshoot of the Turkic Tujue tribe, the Huihe, or Huige, also known as the Uyghur Khaganate, who were ruled by Bayanchur Khan until his death in the summer of 759.
[20]: 109–135, viii, xv, 156, 164, 115, 116 Another epitaph in Luoyang of a Nestorian Christian Sogdian woman also surnamed An was discovered and she was put in her tomb by her military officer son on 22 January 815.
[20]: 149–150, 155–156, viii, xv In Luoyang, the mixed raced sons of Nestorian Christian Sogdian women and Han Chinese men had many career paths available for them.
The Tang dynasty crown prince Li Heng (later Suzong) also received important strategic military information from Chang'an when it was occupied by An Lushan though secret message sent by Amoghavajra.
The siege was noted for the Tang army's determination to fight to the last man, as well as the large-scale cannibalism practised by the defenders, who in this way were able to hold out longer.
Their resistance effectively blocked the Yan forces from attacking the extensive areas south of the Yangzi River, which remained relatively untouched by the An–Shi disturbances.
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.
Soon, however, Yan generals Ashina Chengqing (阿史那承慶), Cai Xide, Tian Chengsi, and Wu Lingxun (武令珣), who had been attacking other Tang cities, headed to Yecheng and coalesced there, allowing An to have over 60,000 soldiers under his disposal and thus regaining some measure of strength.
Li Huaixian was made the military governor (jiedushi) of Lulong Circuit (headquartered in modern Beijing) consisting of Youzhou, the core territory of the former Yan.
Wang Wujun also ruled Chengde Circuit as a de facto independent Kingdom of Zhao before submitting to Tang again under Emperor Dezong.
[42][43] Historians such as Charles Patrick Fitzgerald argue that claims of massive depopulation are incompatible with contemporary accounts of the war, which was fought intermittently over three or four provinces.
[47][48][49][50][51][52] These mass migrations led to southern China's population growth, economic, agricultural and cultural development as it stayed peaceful unlike the north.
[35]: 93, 94 [e] Another source says the slaughter of the Hu barbarians serving Ashina Chengqing was done by Gao Juren in Fanyang in order to deprive him of his support base, since the Tiele, Tongluo, Sogdians and Turks were all Hu and supported the Turk Ashina Chengqing against the Mohe, Xi, Khitan and Goguryeo origin soldiers led by Gao Juren.
Furthermore, the Tang government also lost most of its control over the Western Regions, due to troop withdrawal to central China to attempt to crush the rebellion and deal with subsequent disturbances.
Continued military and economic weakness resulted in further subsequent erosions of Tang territorial control during the ensuing years, particularly in regard to the Tibetan empires.
Much of the rebuilding and recovery occurred in the Jiangnan region in the south, which had escaped the events of the rebellion relatively unscathed and remained more firmly under Tang control.
[72] The Tang dynasty recovered its power decades after the An Lushan rebellion and was still able to launch offensive conquests and campaigns like its destruction of the Uyghur Khaganate in Mongolia in 840–847.
[73] The Yenisei Kyrgyz Khaganate of the Are family bolstered his ties and alliance to the Tang dynasty Imperial family against the Uyghur Khaganate by claiming descent from the Han dynasty Han Chinese general Li Ling who had defected to the Xiongnu and married a Xiongnu princess, daughter of Qiedihou Chanyu and was sent to govern the Jiankun (Ch'ien-K'un) region which later became Yenisei.
[74] The Yenisei Kyrgyz and Tang dynasty launched a victorious successful war between 840–848 to destroy the Uyghur Khaganate in Mongolia and its centre at the Orkhon valley using their claimed familial ties as justification for an alliance.
A prominent case was An Chongzhang, Minister of War and Duke of Liang, who in 756 requested of Emperor Suzong to allow him to change his name to Li Baoyu, due to his shame in sharing the same surname with the rebel leader.