Late Tang (755–907)
The rebellion of An Lushan in 755 marked the beginning of a new period. At first the rebellion had spectacular success. It swept through the northeastern province of Hebei, captured the eastern capital, Luoyang, early in 756, and took the main Tang capital, Chang’an, in July of the same year. The emperor fled to Sichuan, and on the road his consort Yang Guifei and other members of the Yang faction who had dominated his court were killed. Shortly afterward the heir apparent, who had retreated to Lingwu in the northwest, himself usurped the throne. The new emperor, Suzong (reigned 756–762), was faced with a desperately difficult military situation. The rebel armies controlled the capital and most of Hebei and Henan. In the last days of his reign, Xuanzong had divided the empire into five areas, each of which was to be the fief of one of the imperial princes. Prince Yong, who was given control of the southeast, was the only one to take up his command; during 757 he attempted to set himself up as the independent ruler of the crucially important economic heart of the empire in the Huai and Yangtze valleys but was murdered by one of his generals.
An Lushan himself was murdered by a subordinate early in 757, but the rebellion was continued, first by his son and then by one of his generals, Shi Siming, and his son Shi Chaoyi; it was not finally suppressed until 763. The rebellion had caused great destruction and hardship, particularly in Henan. The final victory was made possible partly by the employment of Uighur mercenaries, whose insatiable demands remained a drain on the treasury well into the 770s, partly by the failure of the rebel leadership after the death of the able Shi Siming, and partly by the policy of clemency adopted toward the rebels after the decisive campaign in Henan in 762. The need for a speedy settlement was made more urgent by the growing threat of the Tibetans in the northwest. The latter, allied with the Nanzhao kingdom in Yunnan, had exerted continual pressure on the western frontier and in 763 occupied the whole of present-day Gansu. Late in 763 they actually took and looted the capital. They continued to occupy the Chinese northwest until well into the 9th century. Their occupation of Gansu signaled the end of Chinese control of the region.