Emperor Xuanzong of Tang
Emperor Xuanzong of Tang (; 8 September 685 – 3 May 762), also commonly known as Emperor Ming of Tang or Illustrious August, personal name Li Longji, also known as Wu Longji (Chinese: 武隆基) from 690 to 705, was the seventh emperor of the Tang dynasty in China, reigning from 713 to 756 CE. His reign of 43 years was the longest during the Tang dynasty. In the early half of his reign he was a diligent and astute ruler. Ably assisted by capable chancellors like Yao Chong, Song Jing and Zhang Yue, he was credited with bringing Tang China to a pinnacle of culture and power. Emperor Xuanzong, however, was blamed for over-trusting Li Linfu, Yang Guozhong and An Lushan during his late reign, with Tang's golden age ending in the An-Shi Rebellion.
Li Longji was born at the Tang dynasty eastern capital Luoyang in 685, during the first reign of his father Emperor Ruizong (Li Dan) – but at that time, Emperor Ruizong's mother Empress Dowager Wu (later known as Wu Zetian), not Emperor Ruizong, was in actual control of power as empress dowager and regent. Li Longji was the third son of Emperor Ruizong, and his mother was Emperor Ruizong's concubine Consort Dou, who was highly ranked. In 687, as the emperor's son, he was created the Prince of Chu. It was said that he was handsome as a child, and was talented in music. He had two older brothers – Li Chengqi, born of Emperor Ruizong's wife Empress Liu, and Li Chengyi (李成義), as well as three younger brothers – Li Longfan (李隆範), Li Longye (李隆業), and Li Longti (李隆悌). He had two full younger sisters, Princess Jinxian (金仙公主) and Princess Yuzhen (玉真公主), who later became Taoist nuns.
In 690, Dowager Empress Wu had her son Emperor Ruizong yield the throne to her, and she took the throne as empress regnant of a new Zhou dynasty, interrupting Tang. She imposed upon Ruizong and his family the surname Wu (武) to match hers. In 692, Li Longji and his brothers were allowed to have residences outside the palace and were given staffs at their mansions. In 693, both his mother Consort Dou and Li Dan's wife Crown Princess Liu (Li Dan's having been reduced to crown prince rank at that point) were killed by Wu Zetian inside the palace after Wu Zetian's lady-in-waiting Wei Tuan'er (韋團兒) falsely accused them of using witchcraft against Wu Zetian – and not even their bodies were recovered. Subsequently, all of Li Dan's sons were reduced in title, and Li Longji's title was reduced to Prince of Linzi. He and his brothers, along with their cousins Li Guangshun (李光順) the Prince of Yifeng, Li Shouli the Prince of Yong, and Li Shouyi (李守義) the Prince of Yong'an (the sons of their uncle Li Xián, formerly crown prince but who had been forced by Wu Zetian to commit suicide in 684), were kept inside the palace and not allowed to have contact with outsiders until 699, when they were allowed to leave the palace and take up residences outside.
In 705, Wu Zetian was overthrown in a coup, and Li Longji's uncle Li Xiăn (note different person than the father of Li Guangshun, Li Shouli, and Li Shouyi), who was at that time crown prince (Li Dan having yielded that title to him in 698 and taken the title of Prince of Xiang), who had been briefly emperor prior to Li Dan, returned to the throne (as Emperor Zhongzong). Li Longji was made the deputy minister of military supplies (衛尉少卿, Weiwei Shaoqing). In 708, he was made the secretary general of Lu Prefecture (潞州, roughly modern Changzhi, Shanxi). In 710, he was recalled to the capital Chang'an to attend to Emperor Zhongzong when Emperor Zhongzong was sacrificing to heaven and earth. Meanwhile, sorcerers engaged by Emperor Zhongzong believed that there was an aura of an emperor at the area of Chang'an where the mansions Li Longji and his uncles were, and Emperor Zhongzong tried to fulfill the vision by visiting Li Longji's mansion and attending a feast there. While Li Longji was back in Chang'an, he spent time to cultivate relationships with imperial guard commanders, as he believed that Emperor Zhongzong's powerful wife Empress Wei would bring harm to the Tang dynasty.
In summer 710, Emperor Zhongzong died suddenly—a death that traditional historians believed to be a poisoning by Empress Wei and her daughter Li Guo'er the Princess Anle so that Empress Wei could become "emperor" like Wu Zetian and Li Guo'er could become crown princess. For the time being, Emperor Zhongzong's son by a concubine, Li Chongmao the Prince of Wen, was named emperor (as Emperor Shang), but Empress Wei retained actual power as empress dowager and regent. Originally, Empress Dowager Wei's clan members, along with Zong, Li Guo'er's husband Wu Yanxiu, and other officials Zhao Lüwen (趙履溫) and Ye Jingneng (葉靜能) were advising her to take the throne, like Wu Zetian did, and they also advised her to eliminate Li Dan and Princess Taiping. The official Cui Riyong leaked their plan to Li Longji. Li Longji responded by conspiring with Princess Taiping, Princess Taiping's son Xue Chongjian (薛崇簡), as well as several low level officials close to him—Zhong Shaojing, Wang Chongye (王崇曄), Liu Youqiu, and Ma Sizong (麻嗣宗)—to act first. Meanwhile, Empress Wei's nephews Wei Bo (韋播) and Gao Song (高嵩), who had recently been put in command of imperial guards and who had tried to establish their authority by dealing with the guards harshly, had alienated the guards, and the guard officers Ge Fushun (葛福順), Chen Xuanli (陳玄禮), and Li Xianfu (李仙鳧) thereafter also joined the plot.
Without first informing Li Dan, the conspirators rose on 21 July, first killing Wei Bo, Gao, and Empress Wei's cousin Wei Gui (韋璿). They then attacked the palace. When Empress Dowager Wei panicked and fled to an imperial guard camp, a guard beheaded her. Li Guo'er, Wu Yanxiu, and Lady Helou were killed as well. Li Longji soon slaughtered a number of officials in Empress Dowager's faction as well as her clan, while displaying Empress Dowager Wei's body on the street. At the urging of Princess Taiping, Li Longji, and Li Longji's brother Li Chengqi, Li Dan soon took the throne from Li Chongmao and again became emperor (as Emperor Ruizong).
Emperor Ruizong was immediately faced with the issue of whom to make crown prince—as Li Chengqi, as the oldest son overall and the oldest son of his wife, was the appropriate heir under Confucian principles of succession, but Li Longji had been the one whose accomplishments had allowed him to retake the throne. He hesitated. Li Chengqi declined consideration to be crown prince—stating to his father:
If the state were secure, then consideration should be first given to the oldest son of the wife. If the state were in danger, then consideration should be first given for achievement. If you did not follow this principle, the people of the entire empire will be disappointed. I would rather die than to be placed above the Prince of Ping [(i.e., Li Longji, whose title had been changed to Prince of Ping by this point)].
Li Chengqi wept and begged to yield for several days, and after further persuasion by the chancellor Liu Youqiu—who had been part of Li Longji's coup plans—Emperor Ruizong agreed, and created Li Longji crown prince. Li Longji submitted a petition offering to yield to Li Chengqi, but Emperor Ruizong rejected it.
Initially, Princess Taiping agreed to Li Longji's ascension as crown prince despite the fact that Li Longji was not Emperor Ruizong's oldest son and was not born of Emperor Ruizong's wife Empress Liu (Li Chengqi was both—and therefore pursuant to Confucian principles of succession should have been crown prince) as she believed that Li Longji was young (25 at the time he was made crown prince) and would be easy to control. However, once she began to see that Li Longji was strong-willed, she became apprehensive and often had officials close to her publicly opine that Li Longji was an improper crown prince. She further often paid Li Longji's staff members to spy on him to try to find faults with him. She associated with a group of officials, including the chancellors Dou Huaizhen, Xiao Zhizhong, and Cen Xi, intending to find some way to remove Li Longji, but was unable to get two other chancellors—Wei Anshi and Song Jing—to join her group.
In 711, Song and another chancellor, Yao Yuanzhi, tried to persuade Emperor Ruizong to carry out a plan that they believed would end her plotting. They proposed that the two princes who arguably had superior claims on the throne than Li Longji—Li Chengqi and Li Shouli (whose father Li Xian (note different character than Emperor Zhongzong) was an older brother to both Emperors Zhongzong and Ruizong)—be sent out of the capital Chang'an to serve as prefectural prefects, while Princess Taiping and Wu Youji be sent to live in Luoyang. They also proposed that Li Longji be put in charge of most affairs of state. Emperor Ruizong initially agreed and made the orders as Song and Yao suggested, except that he believed that Luoyang was too far and therefore sent Princess Taiping and Wu Youji only to Pu Prefecture (蒲州, roughly modern Yuncheng, Shanxi). After Princess Taiping found out that the plan was conceived by Song and Yao, however, she was incensed and let Li Longji know her anger. In fear, Li Longji submitted a petition accusing Song and Yao of alienating him from his brothers Li Chengqi and Li Shouli (who was actually a cousin but was raised with Emperor Ruizong's sons) and aunt Princess Taiping, asking that the two be put to death. Emperor Ruizong, in response, demoted Song and Yao and recalled Princess Taiping, Li Chengqi, and Li Shouli to the capital. In the aftermaths, Li Longji submitted another request to yield the crown prince position to Li Chengqi, but Emperor Ruizong declined it. Also in 711, Emperor Ruizong posthumously honored both Empress Liu and Li Longji's mother Consort Dou as empresses and built a temple for them to be worshipped, but was unable to locate their bodies for reburial, and therefore had to give them a ceremonial reburial without the bodies. Emperor Ruizong also ordered that all minor matters be decided by Li Longji.
In 712, Princess Taiping had astrologers warn Emperor Ruizong that the constellation that symbolized the imperial throne, Dizuo (帝座), showed that there would be a change in the emperor's position—believing that Emperor Ruizong would suspect Li Longji of plotting a coup and that she could remove Li Longji this way. Instead, Emperor Ruizong, reasoning that the change in the emperor's position could be accounted by an orderly transition, offered to pass the throne to Li Longji. Princess Taiping fervently opposed it, and Li Longji initially declined, but at Emperor Ruizong's insistence finally accepted and took the throne on 8 September (as Emperor Xuanzong). However, at Princess Taiping's suggestion, Emperor Ruizong retained much of the imperial power as Taishang Huang (retired emperor), and his edicts continued to carry greater force than Emperor Xuanzong's.
Emperor Xuanzong made his wife Crown Princess Wang empress. Meanwhile, Princess Taiping continued to be highly influential in governmental matters through Emperor Ruizong, and most chancellors were her associates. (Of the seven chancellors at the time, five – Dou Huaizhen, Xiao Zhizhong, Cen Xi, Cui Shi, and Lu Xiangxian – were made chancellors at her recommendation, although Lu was not considered a member of her party.) Liu Youqiu and the general Zhang Wei (張暐), with Emperor Xuanzong's approval, planned to mobilize the imperial guards to kill several of those chancellors – Dou Huaizhen, Cui Shi and Cen Xi. However, after Zhang told the plan to the imperial censor Deng Guangbin (鄧光賓), the news was leaked. Liu was arrested, and initially set to be executed. Emperor Xuanzong interceded on his behalf with Emperor Ruizong, and Liu, Zhang, and Deng were spared but exiled.
Later in 712, Emperor Ruizong decreed that Emperor Xuanzong lead a group of soldiers to examine the northern border. However, the group of conscripted soldiers was disbanded in spring 713, and the plan was never carried out.
By summer 713, it was said that Princesses Taiping, Dou, Cen, Xiao, Cui; along with other officials Xue Ji, Li Jin (李晉) the Prince of Xinxing (a grandson of Li Deliang (李德良), a cousin of Tang's founder Emperor Gaozu), Li You (李猷), Jia Yingfu (賈膺福), Tang Jun (唐晙); the generals Chang Yuankai (常元楷), Li Ci (李慈), and Li Qin (李欽); and the monk Huifan, were plotting to overthrow Emperor Xuanzong. It was further said that they discussed, with the lady in waiting Lady Yuan to poison the gastrodia elata that Emperor Xuanzong routinely took as an aphrodisiac. When this alleged plot was reported to Emperor Xuanzong by Wei Zhigu, Emperor Xuanzong, who had already received advice from Wang Ju (王琚), Zhang Shuo, and Cui Riyong to act first, did so. He convened a meeting with his brothers Li Longfan the Prince of Qi and Li Longye the Prince of Xue (who had changed their names to Li Fan and Li Ye by this point to observe naming taboo for Emperor Xuanzong), Guo Yuanzhen, along with a number of his associates — the general Wang Maozhong (王毛仲), the officials Jiang Jiao (姜皎) and Li Lingwen (李令問), his brother-in-law Wang Shouyi (王守一), the eunuch Gao Lishi, and the military officer Li Shoude (李守德)—and decided to act first. On 29 July, Emperor Xuanzong had Wang Maozhong take 300 soldiers to the imperial guard camp to behead Chang and Li Ci. Then, Jia, Li You, Xiao, and Cen were arrested and executed as well. Dou fled into a canyon and committed suicide by hanging. Xue Ji was forced to commit suicide. When Emperor Ruizong heard about this, he quickly ascended the tower at Chengtian Gate (承天門) to ascertain what was happening. Guo reported to him Emperor Xuanzong's intentions, and Emperor Ruizong felt compelled to affirm Emperor Xuanzong's actions in an edict. The next day, Emperor Ruizong issued an edict transferring all authorities to Emperor Xuanzong and moved to a secondary palace, Baifu Hall (百福殿) and would remain there until his death in 716.
Emperor Xuanzong's Kaiyuan era is usually viewed as one of the golden ages of Chinese history – a period of political stability, peace in society, and economic prosperity, in addition to advances in education, literature, music, painting, sculpture, and religion.
Meanwhile, Zhang Yue and Liu Youqiu served as chancellors, but they were soon displaced by Yao Yuanzhi (who then changed his name to Yao Chong) and Lu Huaishen. Changing the system of having a large group of chancellors simultaneous, as had been the case throughout Tang, Emperor Xuanzong reduced the numbers to two (or sometimes three) for the rest of his reign. Yao was considered a highly capable administrator, and with him ruling on most important matters and Lu assisting, the government was said to be highly efficient.
In 714, Emperor Xuanzong carried out a series of political reprisals against the cruel secret police officials of Wu Zetian's reign, exiling the ones that were still alive and eventually barring their descendants from holding political offices. At the urging of Jiang Jiao's brother Jiang Hui (姜誨), he also exiled a number of chancellors – Wei Sili, Wei Anshi, Zhao Yanzhao, and Li Jiao – from Emperor Zhongzong's reign whom Jiang accused of being unable to curb Empress Wei's abuse of power.
Also in 714, Emperor Xuanzong, wanting to punish the Khitan and the Xi for having defeated Tang forces during Emperor Zhongzong's reign, commissioned the general Xue Ne to attack them, but Xue suffered another devastating loss to them, at the casualty rate of 80–90%. However, later in the year, when the Tibetan Empire attacked, Emperor Xuanzong again commissioned Xue to defend against the attack, and Xue was able to repel the Tibetan forces. Subsequently, though, although both sides tried to invoke the marriage between Li Shouli's daughter Princess Jincheng and Me Agtsom, emperor of the Tibetan Empire, in seeking peace, the two sides could not reach an agreement and remained in border conflict yearly. In response, Emperor Xuanzong established the office of jiedushi (military governor) of Longyou Circuit (隴右, headquartered in what is now Haidong, Qinghai), with a centralized command of 12 prefectures under a single military general. Eventually, the establishment of jiedushi would be extended to other parts of the empire.
Meanwhile, the Tang relationship with Qapaghan Qaghan of the Göktürks had fluctuated during the first few years of the Kaiyuan era, as minor hostilities occurred at the borders as well as contests over vassals' loyalty for the two states, but they were also at times friendly to each other, with Qapaghan requesting at times to marry a Tang princess and Emperor Xuanzong agreeing to the proposal. In 716, however, Qapaghan was killed in battle against the Bayegu (拔野古), and from that point on, lacking his efficient leadership, the Göktürks, while remaining an important regional power, posed much less of a threat to China, although at times still capable of dealing serious defeats to Tang forces, as was the case in 720 when the Göktürk general Tonyukuk defeated the Tang garrison at Liang Prefecture (涼州, roughly modern Wuwei, Gansu) and the Tang vassal Basmyl. Meanwhile, Tang, the Tibetan Empire, and the Umayyad Caliphate were constantly engaging in a three-way tug of war for influence in the Xiyu (i.e., modern Xinjiang and former Soviet Central Asia) region. In 715, for example, when the king of Bahanna (拔汗那) was expelled by a new king supported by the Tibetan Empire and the Umayyad Caliphate, Tang forces commanded by the general Zhang Xiaosong (張孝嵩) attacked the new king and restored the old king. General Tang Jiahui led the Chinese to defeat the following Arab-Tibetan attack in the Battle of Aksu (717). The attack on Aksu was joined by Turgesh Khan Suluk. Both Uch Turfan and Aksu were attacked by the Turgesh, Arab, and Tibetan force on 15 August 717. Qarluqs serving under Chinese command, under Arsila Xian, a Western Turkic Qaghan serving under the Chinese Assistant Grand Protector General Tang Jiahui defeated the attack. Al-Yashkuri, the Arab commander and his army fled to Tashkent after they were defeated.
In and around 716, there was a major locust infestation in the central China region. At Yao's suggestion, Emperor Xuanzong ordered an extensive campaign of extermination, which was said to reduce the impact of the infestation and ward off a major famine. Later in 716, however, due a corruption scandal involving Yao's sons and his associate Zhao Hui (趙誨), Yao incurred displeasure from Emperor Xuanzong and offered to resign. He and Yuan Qianyao, who replaced Lu after Lu's death earlier in 716, were removed from their offices and replaced with Song Jing and Su Ting, with Song making more of the important decisions and Su assisting. Yao would not return to the chancellorship, but would remain influential as a key advisor for Emperor Xuanzong until Yao's death in 721. Contrary to the practical and flexible Yao, Song was more interested in emphasizing integrity and rule of law in governance, and it was said that while Yao's and Song's emphases were different, they were both regarded as instrumental in establishing the rule of Kaiyuan and that subsequent chancellors could not compare to them.
Meanwhile, Song and Su had carried out a stern campaign against the use of coins that were not officially forged by the government, which brought popular resentment that Emperor Xuanzong found problematic. In 720, he removed Song and Su from chancellor offices and replaced them with Yuan and Zhang Jiazhen, and in 721 added Zhang Yue as a chancellor as well.
Meanwhile, by 722, Empress Wang, who had contributed to Emperor Xuanzong's reign by providing suggestions, had begun to lose favor to Consort Wu, a great-grandniece of Emperor Xuanzong's grandmother Wu Zetian. Emperor Xuanzong secretly discussed with Jiang Jiao the possibility of deposing her, but Jiang Jiao careless leaked the discussion. At the urging of Zhang Jiazhen, who was friendly with Empress Wang's brother Wang Shouyi (王守一), advocated that Jiang Jiao be punished and exiled, and Jiang died in exile.
Meanwhile, at Zhang Yue's suggestion, the Tang northern border defense forces, which had about 600,000 men at that time, was reduced by 200,000 men to allow the soldiers to return home. Further, seeing that the Tang conscription system, due to abuses against the soldiers at the time, was near a collapse, as the soldiers were forced into long tours of duty but their families were not exempt from taxes, thus causing great numbers of desertions, Zhang suggested a switch to a recruitment-based system where soldiers were paid salaries. This allowed, for a time, Tang's soldier supply to be replenished. (Some later historians condemned Zhang for the abolition of the conscription system, believing the abolition to be the root of Tang's later fracturing, but some others, such as the modern historian Bo Yang, argued that Zhang's actions not only were necessary to restore the supply of soldiers but saved many lives.)
In 723, Zhang Jiazhen was demoted on account of a corruption scandal involving his brother Zhang Jiayou (張嘉祐). His position was filled by Wang Jun, who was soon himself demoted over suspicions, never proven, that he was plotting treason. With Zhang Yue thus effectively being the senior chancellor, Zhang Yue promoted literary studies, which Emperor Xuanzong also favored. In 724, he also commissioned the chief imperial astronomer Nangong Shuo (南宮說) to carry out a major astronomical survey to observe the sun and the North Star at various points of the empire.
Also in 724, it was discovered that Wang Shouyi had engaged sorcerers to make amulets for Empress Wang to wear, hoping that the use of magic would allow her to have a son. Empress Wang was deposed and reduced to commoner rank, while Wang Shouyi was exiled and subsequently ordered to commit suicide in exile. Empress Wang died later in the year, and it was said that the eunuchs and the ladies in waiting mourned her bitterly and Emperor Xuanzong much regretted his treatment of her. Still, after Empress Wang's removal and death, Consort Wu became undisputed mistress of the palace and was treated inside the palace like an empress would be. Still, in 726, when Emperor Xuanzong considered creating her empress, he encountered oppositions from officials on two grounds – that her Wu clan was hated by the people and that as she had her own sons, the position of Li Siqian the Crown Prince (whose name had been changed to Li Hong by this point) would be threatened. As a result, Emperor Xuanzong never created her empress.
In 726, Zhang Yue was accused of corruption by several officials that he had blocked the advances of – Cui Yinfu (崔隱甫), Yuwen Rong, and Li Linfu – and was found to have committed corruption. At the intercession of Gao Lishi, however, Zhang Yue was removed only from his chancellor post and permitted to maintain his title and a number of other posts. He was replaced by Li Yuanhong, and subsequently, Du Xian was also added as a chancellor.
In 727, at the suggestion of the general Wang Junchuo (王君㚟), Emperor Xuanzong commissioned Wang Junchuo to attack the Tibetan Empire, and after a Tibetan incursion in late 726, Wang counterattacked and inflicted losses on Tibetan forces commanded by the general Xinuoluogonglu (悉諾邏恭祿). Later in the year, though, Xinuoluogonglu and another general, Zhulongmangbuzhi (燭龍莽布支) attacked and captured Wang's home prefecture Gua Prefecture (瓜州, roughly modern Jiuquan, Gansu), taking Wang's father Wang Shou (王壽) captive. As a result, Wang Junchuo did not dare to counterattack, and subsequently blamed the defeat on a number of tribal chiefs in the area and had them exiles. In response, Yaoluoge Hushu (藥羅葛護輸), the nephew of one of the chiefs so exiled, Yaoluoge Chengzong (藥羅葛承宗), ambushed Wang Junchuo and killed him, and while Yaoluoge Hushu was forced to flee thereafter, for several years Tang did not engage in any offensive campaigns in the region.
Around the same time, Emperor Xuanzong began to build a residential complex in the palace for imperial clan members, known as the Mansion of the Ten Princes (十王院), to centralize their residence. Thereafter, imperial princes, including the crown prince, would rarely live outside the palace complex.
In 728, Emperor Xuanzong added the general Xiao Song as a chancellor. Subsequently, in 729, with Yuan, even though he was senior chancellor, unable to curb the disputes between Li Yuanhong and Du, Emperor Xuanzong removed all three from chancellor positions, promoting Yuwen and Pei Guangting to be chancellors in their stead – in Yuwen's case, for his abilities to find ways to add to the imperial treasury by imposing special taxes and levies. Later in the year, though, Yuwen made false accusations against the general Li Hui (李褘) the Prince of Xin'an (Emperor Xuanzong's second cousin) and was exiled, and subsequently died in exile. Still, it was said that it was starting from Yuwen's times that Emperor Xuanzong began to pay attention on taxes to replenish the imperial treasury, which traditional historians viewed as the start of his inflicting financial burdens on the people. Further, with Pei in charge of the civil service system, it was said that due to Pei's strict adherence to seniority, the Tang civil service system began to lose its ability to find talented people to serve in offices.
In 730, the Khitan general Ketugan (可突干) killed the king Li Shaogu (李邵固) and took over the reign of the Khitan and the Xi personally, forcing the king of the Xi, Li Lusu (李魯蘇) to flee to Tang for protection. Tang sent an army to attack the Khitan, but meanwhile made peace with the Tibetan Empire. Initially, the campaign against the Khitan did not succeed, but in 732, with Li Hui in command, Tang forces dealt Ketugan a serious defeat and causing many of Ketugan's subordinates to defect and submit to Tang, although Ketugan was not captured.
Meanwhile, Tang also began to have periodic conflicts with Balhae, and in 733 Emperor Xuanzong tried to commission Dae Mun-ye (大門藝), the brother of Balhae's King Mu, to attack Balhae, along with forces from Silla, but the attack was not successful.
Also in 733, Pei Guangting died, and at the recommendation of Xiao Song, he was replaced with Han Xiu, but soon, Song and Han were in repeated conflicts, and late in 733, both were removed and replaced with Pei Yaoqing, who became known for improving the food distribution system, and Zhang Jiuling, known for his integrity. In 734, Emperor Xuanzong added Li Linfu, a close associate of Consort Wu, as a chancellor as well.
Around the new year 735, Ketuhan was killed in an internal Khitan power struggle, and Khitan became a vassal again, although it would not stay so permanently.
By 736, Emperor Xuanzong was described as having been tired of important affairs of state and beginning to become wasteful and exuberant in his lifestyle. Zhang tried to curb his behavior but thus began to lose favor, while Li Linfu was gaining power due to his association with Consort Wu. Further, Zhang supported Li Hong (whose name had been changed to Li Ying by this point), while Li Linfu and Consort Wu supported her son Li Mao (李瑁) the Prince of Shou and tried to have Li Mao made crown prince. In 736, due to Li Linfu's machinations that made Emperor Xuanzong believed that Zhang and Pei Yaoqing were improperly engaging in factionalism, Zhang and Pei Yaoqing were removed and replaced by Niu Xianke, who closely followed Li Linfu's will, and thereafter, Li Linfu would dominate the imperial government almost to the end of Emperor Xuanzong's reign. Li Linfu did all he could to stay in power, and carried out many dirty tricks against actual or potential threats to his power. He also severely discouraged criticism, ending the relative freedom that officials had to make proposals to Emperor Xuanzong. This was often viewed by traditional historians as the turning point of Emperor Xuanzong's reign, which up to that point was considered a golden age in Chinese history, toward a path of degeneration. The Song dynasty historian Sima Guang, in his Zizhi Tongjian, for example, commented:
Of the chancellors that the Emperor commissioned after he took the throne, Yao Chong emphasized flexibility, Song Jing emphasized the rule of law, Zhang Jiazhen emphasized administrative abilities, Zhang Shuo emphasized literary talent, Li Yuanhong and Du Xian emphasized frugality, and Han Xiu and Zhang Jiuling emphasized honesty. All of them had their different talents. After Zhang Jiuling was demoted, however, the officials were all concerned about keeping their positions, and honest words no longer had a place in government.
In 737, with Zhang no longer in the government to protect him, Li Ying was deposed and subsequently forced to commit suicide. However, with Consort Wu dying later in the year, Emperor Xuanzong did not immediately accept Li Linfu's proposal to have Li Mao made crown prince. Rather, he chose an older son, Li Yu the Prince of Zhong, in 738.
Historians said that Emperor Xuanzong forced tens of thousand beautiful women to live in his palace to please him, more than many other Tang emperors. And he did not allow many to be set free even when they were old. As Emperor Xuanzong turned his attention to pleasure-seeking with his favorite concubine Yang Guifei and her family, he paid less and less attention to the running of his empire, and much of his power fell into the hands of the corrupt Li Linfu (who was succeeded by Lady Yang's dissolute cousin Yang Guozhong) and the eunuch Gao Lishi.
At the same time, 751 saw the loss of the Battle of Talas against the Abbasid Caliphate. As a consequence, the Tang dynasty temporarily lost some of its influence in Central Asia to the emerging Abbasid Caliphate, as several Tang tributaries turned to the Abbasids.
Meanwhile, the jiedushi (military governors), most of whom were non-Han took more and more regional power into their own hands. Some successful generals included Geshu Han, known for victories over the Tibetan Empire; Gao Xianzhi, who conquered city states of the Xiyu region, eventually battling the Abbasids at Talas; and An Lushan who defeated and once again vassalized the Khitan. Eventually, in 755, An Lushan started the Anshi Rebellion at Fanyang. The rebels quickly seized the eastern capital Luoyang, and then the imperial capital Chang'an six months later. Emperor Xuanzong fled to Sichuan during the war and abdicated the throne to Li Yu (whose name had been changed to Li Heng at that point) (as Emperor Suzong).
Meanwhile, at Li Linfu's encouragement, Emperor Xuanzong began to promote non-Han generals to command large border armies, believing Li Linfu's assertion that non-Han generals were more likely to be personally loyal to Emperor Xuanzong himself and would not have clan entanglements, even though Li Linfu's own personal motivation was to prevent Han officials from going through the border command route to become chancellors, thus threatening him. Such generals who rose in ranks included An Lushan, An Sishun, Geshu Han, and Gao Xianzhi. By 742, the main Tang forces were all concentrated on the border, at nine different military circuits and one special military district (Lingnan), as well as three special coast defense districts (Changle, Donglai, and Dongmou):
Meanwhile, it was said that Emperor Xuanzong had paid less attention to increasing revenues after Yuwen Rong's fall, but by 742 he was again interested in doing so, and such officials as Wei Jian (韋堅, a brother-in-law of Li Yu, whose name was changed by this point to Li Heng), Wang Hong (王鉷), and Yang Shenjin (楊慎矜) became favored, and often, matters having to do with finances were stripped out of other officials' responsibilities and given to them as special commissions.
In 744, Eastern Tujue, after a series of internal turmoil and rebellions from its vassals, finally collapsed. Its vassal Huige rose and became the dominant power of the region, but formally submitted to Tang as a vassal.
Meanwhile, after Consort Wu's death, Emperor Xuanzong had been depressed. When he saw his son Prince of Shou Li Mao's wife (his daughter-in-law) Yang Yuhuan (Princess of Shou, by virtue of marriage), he was infatuated with her, and he had her become a Taoist nun and gave Li Mao the wife of the general Wei Zhaoxun (韋昭訓) as his new wife and princess. Meanwhile, he secretly took the nun, Yang, into the palace. She became his senior-ranking concubine (guifei), known as Yang Guifei, and soon became so powerful that officials were bribing her family members to get preferential treatment. She was referred to inside the palace as "the Lady" and treated like an empress. He abducted more than 40000 women in his palace. Some were not set free even after they were over 60 years old.
Meanwhile, Li Linfu was beginning to conflict with Li Shizhi and Wei Jian, who were allies. Li Linfu, who engaged a group of secret police officials to investigate and manufacture evidence against political enemies, was able to get Wei and Li Shizhi demoted and exiled in 746. (Li Shizhi was replaced by Chen Xilie, who gained favor from Emperor Xuanzong for his knowledge in Taoism and sorcery.) In 747, Li Linfu further carried out a campaign of terror against exiled officials, and among the officials executed were Wei, Li Yong (李邕) and Pei Dunfu (裴敦復). Li Shizhi and Wang Ju, who had been instrumental in Emperor Xuanzong's initial actions against Princess Taiping, committed suicide.
Meanwhile, in 747, Emperor Xuanzong wanted to expand the government's talent pool, and so issued an edict ordering that the people who had unusual talents to come to Chang'an to be examined by himself. Li Linfu, fearing that these examinees might accuse him of improprieties when they get to meet the emperor, suggested that these examinees go through two levels of preliminary examinations – by the local governments, and then by the executive bureau. As a result, no one passed the first two levels of preliminary examinations, and Li LInfu subsequently submitted a note to Emperor Xuanzong congratulating him that no talent has been overlooked by the imperial administration.
Meanwhile, also as of 747, An Lushan had become greatly favored by Emperor Xuanzong due to his military achievements and his willingness to flatter Emperor Xuanzong, Consort Yang, and her family members. Further, Li Linfu, apprehensive about the general Wang Zhongsi, who at that time was in command of four circuits (Hexi, Longyou, Shuofang, and Hedong), deprecated Wang in favor of An Lushan. In 747, after Li Linfu implicated Wang in hindering a campaign against the Tibetan Empire and further accused Wang of plotting a coup to overthrow Emperor Xuanzong and replace him with Li Heng, Wang was arrested and demoted, escaping death only at the pleas of Geshu, who was Wang's deputy and who subsequently was given the commands of Hexi and Longyou. An Lushan, who had already been in command of Fanyang and Pinglu Circuits, was also given Hedong, and thereafter was in command of the most elite troops of the empire. Meanwhile, the ethnically Goguryeo general Gao Xianzhi had become prominent in the Xiyu region, expanding Tang power to the west.
By 748, Consort Yang's cousins Yang Guozhong, Yang Xian (楊銛) and Yang Qi (楊錡), as well as her three sisters (who were created the Ladies of Han, Guo, and Qin), had become exceedingly wealthy and powerful due to the favors that Emperor Xuanzong showed them. It was said that their wealth topped all households in Chang'an. It was also said that by 749, the empire was so wealthy that Emperor Xuanzong viewed treasures as expendable and so awarded them without limit.
Meanwhile, Li Linfu had a tight grip on power and favors from Emperor Xuanzong throughout the years, but as of 750, Yang Guozhong and Chen Xilie had allied with each other and were finding ways to eliminate Li Linfu's allies from government.
As of 751, Tang was also facing defeats on two different external fronts – as Nanzhao's king Geluofeng (閤羅鳳), angry about unreasonable demands that the Zhang Qiantuo (張虔陀) the governor of Yunnan Commandery (雲南, roughly modern Chuxiong Yi Autonomous Prefecture, Yunnan) and Zhang's subsequent false accusations that he was planning to rebel, rebelled for real, and attacked and occupied Yunnan Commandery. A major attack by the general Xianyu Zhongtong (鮮于仲通) against Nanzhao failed terribly in 751, and subsequent defeats by Tang forces eventually led to a total of some 200,000 casualties among Tang troops. On the western front, Gao Xianzhi suffered a major defeat at the Abbasid forces at the Battle of Talas in 751 as well, ending the Tang expansion to the west.
In 752, Wang Hong's brother Wang Han (王銲) was accused of treason after his associates rose in a failed coup at Chang'an. In the aftermaths, Wang Hong was forced to commit suicide, and Yang Guozhong, Chen, and Geshu Han further tried to implicate Li Linfu in the plot as well. After Li LInfu died in winter 752, Yang Guozhong succeeded him, and almost immediately accused Li LInfu of having been complicit in the rebellion of another general, Li Xianzhong (李獻忠). Li LInfu was posthumously disgraced, and his family was exiled.
A rivalry soon developed between Yang Guozhong and An Lushan, and Yang Guozhong began to repeatedly warn Emperor Xuanzong that An was plotting rebellion. Emperor Xuanzong ignored the warnings. In 754, Yang Guozhong suggested that if An were summoned to the capital, he would surely refuse, and Emperor Xuanzong decided to try An – and An arrived in Chang'an immediately after being summoned. After this incident, Emperor Xuanzong no longer believed that An was plotting rebellion. Nevertheless, because of Yang Guozhong's opposition, he did not make An chancellor, as he was planning. Also in 754, with Yang Guozhong also trying to squeeze Chen out of the government, Chen resigned and was replaced by Wei Jiansu.
In 755, Yang Guozhong further provoked An, who was then back at his post in Fanyang, by surrounding An's mansion at Chang'an and arresting and executing An's staff members. An, in fear and anger, rebelled in winter 755, and quickly reached and captured Luoyang after defeating Feng Changqing's undersupplied army. Subsequently, Emperor Xuanzong, believing in reports from the eunuch Bian Lingcheng (邊令誠) that Feng was cowardly and that Feng's superior Gao Xianzhi was corrupt, executed both Feng and Gao and replaced Gao with Geshu in defending Tong Pass from An's advances. An declared himself emperor of a new state of Yan at Luoyang, but with Geshu defending Tong Pass, An's advances stalled, while Tang forces commanded by Li Guangbi and Guo Ziyi made advances against An-controlled territory north of the Yellow River. Meanwhile, though, Yang Guozhong, fearing that Geshu had designs against him, convinced Emperor Xuanzong to order Geshu to attack despite Geshu's warnings that doing so was risky. Geshu was subsequently defeated by An's forward commander Cui Qianyou (崔乾祐), and Tong Pass fell. With An's forces advancing on Chang'an, on 14 July 756, Emperor Xuanzong, with Yang Guozhong suggesting that they flee to Jiannan Circuit, abandoned Chang'an and fled with Gao Lishi, Yang Guozhong, Wei, Li Heng, Consort Yang, and her family. The following day, 15 July, the imperial guards accompanying the emperor, angry at Yang Guozhong, rose and killed him and forced Emperor Xuanzong to kill Consort Yang as well. Subsequently, Emperor Xuanzong continued on to Jiannan, but Li Heng did not, but rather went to Lingwu, where, on 12 August, Li Heng was declared emperor (as Emperor Suzong). Meanwhile, without knowledge that Emperor Suzong had claimed the throne, Emperor Xuanzong, while still on his way to Chengdu, the capital of Jiannan Circuit, issued an edict that gave several of his sons various responsibility areas, under Li Heng's command overall; until this edict was issued, most of the realm only knew that Chang'an had fallen and had not known where Emperor Xuanzong had fled. When the news of Emperor Suzong's ascension reached Emperor Xuanzong at Chengdu on 10 September, he recognized Emperor Suzong as the new emperor, and thereafter took the title of Taishang Huang (retired emperor) – although his edict recognizing Emperor Suzong appeared to still indicate desire to retain control like his father Emperor Ruizong did early in his reign:
From now on, my edicts (敕, chi) shall be referred to as gao (誥), and submissions to me shall address me as Taishang Huang. All matters relating to the military or the state throughout the realm shall first be submitted to the Emperor before being submitted to me. After the capital is recaptured, I will no longer oversee the affairs of state.
However, perhaps to avoid the impression that he was keeping a rival government to Emperor Suzong, he sent the several chancellors that he had retained or created while on the journey to or after he arrived in Chengdu – Wei, Fang Guan, and Cui Huan – to Lingwu to formally invest imperial power on Emperor Suzong and to serve under Emperor Suzong.
Emperor Xuanzong, after becoming retired emperor, largely allowed Emperor Suzong to coordinate the campaign against Yan, but at times nevertheless stepped in to make decisions. For example, in spring 757, apparently without first consulting Emperor Suzong, he named Li Lin chancellor, although he subsequently sent both Li Lin and another chancellor, Cui Yuan, whom he had not sent to Emperor Suzong previously, to Emperor Suzong. He also posthumously honored Emperor Suzong's mother Consort Yang (not Yang Yuhuan) as an empress. Meanwhile, remembering Zhang Jiuling had previously warned about An Lushan, Emperor Xuanzong sent messengers to Zhang's tomb to offer sacrifices to him.
Late in 757, Emperor Suzong, with aid from Huige, recaptured Chang'an from Yan, then ruled by An Lushan's son An Qingxu, who had killed An Lushan earlier in 757 and taken over the throne himself. After Emperor Suzong recaptured Chang'an, he sent messengers to Emperor Xuanzong requesting that he return to Chang'an and offering the throne back to Emperor Xuanzong. Emperor Xuanzong, apprehensive of the offer, initially not only declined but further requested to remain in Jiannan. Only after Emperor Suzong, at the suggestion of his strategist Li Mi, had the government officials make a joint submission to Emperor Xuanzong no longer mentioning the return of the throne, did Emperor Xuanzong agree to depart Jiannan to return to Chang'an. On the way back to Chang'an, he had Gao Lishi try to dig up Consort Yang Yuhuan's body for reburial, but her body had already decomposed; only her fragrance bag remained. Emperor Xuanzong took the fragrance bag back to Chang'an and visited it daily, as if Consort Yang were still alive. On 16 January 758, he arrived at Chang'an, and in a grand ceremony where Emperor Suzong offered the throne back to him again, he formally declined again and personally put the yellow robe symbolizing imperial status on Emperor Suzong, commenting, "I had been the Son of Heaven for 50 years, and I did not consider it a great honor. Now I am truly honored to be the father to the Son of Heaven." He took up residence at Xingqing Palace, a palace that was remodelled from the residence that he and his brothers had when they were imperial princes.
After Emperor Xuanzong was back in Chang'an, he largely stayed out of policy decisions, although he at times still exerted his influence on Emperor Suzong. For example, Emperor Suzong had wanted to spare Zhang Shuo's sons Zhang Jun (張均) and Zhang Ji (張垍), who had previously submitted to An Lushan, because of Zhang Shuo's contributions and Zhang Jun's and Zhang Ji's prior efforts to protect him from Li Linfu's machinations, but Emperor Xuanzong deeply hated them for having surrendered to An, and at Emperor Xuanzong's insistence, Zhang Jun was executed, and Zhang Ji was exiled to Lingnan.
Meanwhile, after a while, Emperor Xuanzong settled into a routine at Xingqing Palace, with Chen Xuanli and Gao Lishi attending to him. Also often attending to him were his daughter Li Chiying (李持盈), the Princess Yuzhen, the lady in waiting Ru Xianyuan (如仙媛), and the eunuchs Wang Cheng'en (王承恩) and Wei Yue (魏悅). The imperial musicians often played for him, and he often climbed up Changqing Tower (長慶樓) to receive well wishes from the populace. He also often held feasts for generals and people from Jiannan, with Li Chiying and Ru serving as hostesses. Meanwhile, though, Emperor Xuanzong's attendants looked down at the powerful eunuch Li Fuguo, who had served Emperor Suzong throughout the campaign against Yan. To retaliate, Li Fuguo began to try to convince Emperor Suzong that Emperor Xuanzong and his attendants were plotting to seize power back. In 760, with Emperor Suzong's tacit, although not explicit, approval, on one occasion when Emperor Xuanzong was out riding, Li Fuguo intercepted him and forced him to move back to the main palace. Even on that occasion, however, Gao would not submit to Li Fuguo, and even yelled at Li Fuguo to force him to get off his horse and to escort Emperor Xuanzong on foot, along with Gao. Soon after Emperor Xuanzong was forcibly moved, Li Fuguo forced Chen to retire, Li Chiying to return to her temple (she had become an ordained Taoist nun in 711), and exiled Gao, Wang, Wei, and Ru.
After Emperor Xuanzong was forcibly moved back to the main palace, Emperor Suzong tried to please him by offering him the best of all of the tributes of the land first, but Emperor Xuanzong became depressed and rarely ate meat, and quickly became ill. Emperor Suzong had his daughters Princesses Wan'an and Xianyi attend to their grandfather, and initially frequently personally visited Emperor Xuanzong, but after some time became ill himself and could not visit Emperor Xuanzong. He began to regret forcibly moving Emperor Xuanzong and considered killing Li Fuguo, but as Li Fuguo wielded command of the imperial guards at this time, he did not dare to try to do so. Emperor Xuanzong died, in that depressed state, on 3 May 762.
Emperor Xuanzong was deeply criticized by later historians for his wastefulness and for his appointing of Li Linfu, Yang Guozhong, and An to prominent offices. The strength that Xuanzong had allowed the military governors to have, which was perpetuated after Tang had defeated Yan, led to a period of increasing conflict and instability which set the stage for the decline of the Tang dynasty and the ensuing Five Dynasties and Ten Kingdoms period.
Xuanzong had one poem collected in the famous poetry anthology Three Hundred Tang Poems, in the style of the five-character-regular-verse (wulu) form and in the huaigu genre, and which was translated by Witter Bynner as "I Pass Through the Lu Dukedom with a Sigh and a Sacrifice for Confucius": this poem refers to the philosopher-sage Confucius and to Confucius' home state of Lu, during the by then long-gone Spring and Autumn period, and expresses sadness for what is past and beyond recall, thus reflecting on the transience of mortal existence.