Emperor Ai of Tang
The new Later Liang emperor created Li Chu the Prince of Jiyin and moved him from Luoyang to Cao Prefecture (曹州, in modern Heze, Shandong), and put his mansion under heavy guard, with a fence of thorns surrounding it. In 908, he had Li Chu poisoned to death, and gave Li Chu the posthumous name of "Ai" (哀, "lamentable"). In 928, by which time Li Keyong's adoptive son Li Siyuan was ruling as the emperor of Jin's successor state Later Tang (as Emperor Mingzong), which claimed to be the legitimate continuation of Tang Dynasty and which had earlier destroyed Later Liang, Emperor Mingzong's officials suggested that a temple be built to honor Emperor Ai. Emperor Mingzong had such a temple built at Cao Prefecture. In 929, Emperor Mingzong's officials further suggested giving Emperor Ai a more proper (i.e., more Tang-traditional) posthumous name of Emperor Zhaoxuan Guanglie Xiao, with a temple name of Jingzong, but they also pointed out that since Emperor Ai's temple was not among the imperial ancestral temples, a temple name was not proper. Therefore, only the new posthumous name was adopted, and the temple name was not. Traditional histories thus referred to him mostly as Emperor Ai but also at times as Emperor Zhaoxuan.No family recorded in official histories; Song dynasty general Li Gang was claimed to be a descendant through a son named Li Xizhao (李熙照)
Tang dynasty
The last great ambitious ruler of the Tang dynasty was Emperor Xianzong (r. 805–820), whose reign was aided by the fiscal reforms of the 780s, including a government monopoly on the salt industry. He also had an effective well trained imperial army stationed at the capital led by his court eunuchs; this was the Army of Divine Strategy, numbering 240,000 in strength as recorded in 798. Between the years 806 and 819, Emperor Xianzong conducted seven major military campaigns to quell the rebellious provinces that had claimed autonomy from central authority, managing to subdue all but two of them. Under his reign there was a brief end to the hereditary jiedushi, as Xianzong appointed his own military officers and staffed the regional bureaucracies once again with civil officials. However, Xianzong's successors proved less capable and more interested in the leisure of hunting, feasting, and playing outdoor sports, allowing eunuchs to amass more power as drafted scholar-officials caused strife in the bureaucracy with factional parties. The eunuchs' power became unchallenged after Emperor Wenzong's (r. 826–840) failed plot to have them overthrown; instead the allies of Emperor Wenzong were publicly executed in the West Market of Chang'an, by the eunuchs' command.
However, the Tang did manage to restore at least indirect control over former Tang territories as far west as the Hexi Corridor and Dunhuang in Gansu. In 848 the ethnic Han Chinese general Zhang Yichao (799–872) managed to wrestle control of the region from the Tibetan Empire during its civil war. Shortly afterwards Emperor Xuānzong of Tang (r. 846–859) acknowledged Zhang as the protector (防禦使, "Fangyushi") of Sha Prefecture and "jiedushi" military governor of the new Guiyi Circuit.