Tian Lingzi

Tian Lingzi (田令孜) (died 893), courtesy name Zhongze (仲則), formally the Duke of Jin (晉公), was a powerful eunuch during the reign of Emperor Xizong of Tang.

The historical accounts were inconsistent as to whether he was from the Shu (蜀, i.e., modern Sichuan) region (as per his biography in the New Book of Tang)[1] or from Xu Prefecture (許州, in modern Xuchang, Henan) (as per the Zizhi Tongjian when describing Chen Jingxuan's origins)[2] It was said that he entered the palace as an eunuch under his adoptive father, presumably a eunuch named Tian, during the middle of Emperor Yizong's Xiantong era (860–874).

As the imperial armies were having difficulty containing the rebellions, Tian began considering the contingency plan, in case Chang'an were attacked, of taking the emperor to the Shu region.

He thus recommended his brother Chen Jingxuan, who was then a general of the imperial guards, as well as several generals he trusted, Yang Shili, Niu Xu (牛勗), and Luo Yuangao (羅元杲), as potential military governors for the region, also known as the Sanchuan (三川) — i.e., the three circuits of Xichuan, Dongchuan (東川, headquartered in modern Mianyang, Sichuan), and Shannan West (山南西道, headquartered in modern Hanzhong, Shaanxi).

Chen won the game, and was made the military governor of Xichuan, while Yang was given Dongchuan and Niu Shannan West.

Tian and the chancellor Cui Hang suggested that Emperor Xizong carry out the contingency plan to flee to the Sanchuan region.

Huang took Chang'an and, after initially living at Tian's mansion and then moving into the palace, declared himself the emperor of a new state of Qi.

[5] Emperor Xizong's train first fled to Fengxiang Circuit (鳳翔, headquartered in modern Baoji, Shaanxi), where the former chancellor Zheng Tian was military governor.

After authorizing Zheng to oversee the resistance operation against Huang Chao, Emperor Xizong further fled to Shannan West, and then, at Chen Jingxuan's invitation, to Xichuan.

Tian then hit the prince with a whip and ordered him to continue, causing Li Jie to bear a deep grudge against him.

[7] Meanwhile, Tian and Chen had also alienated Yang Shili by promising to make another general, Gao Renhou, the military governor of Dongchuan.

Gao subsequently waged a campaign against Yang, putting Dongchuan's capital Zi Prefecture (梓州) under siege.

As Tian Lingzi greatly expanded the Shence Armies during the time Emperor Xizong was in Xichuan, the imperial government was unable to pay for all of the soldiers' and officials' salaries.

Tian tried to remedy the situation by ordering the control of the salt pools in Hezhong Circuit (河中, headquartered in modern Yuncheng, Shanxi) be returned to the imperial government so that the revenues could be restored.

The military governor of Hezhong, Wang Chongrong, did not want to give up the salt pools, and submitted repeated petitions opposing the order.

In summer 885, Tian had Emperor Xizong issue an edict transferring Wang to Taining Circuit (泰寧, headquartered in modern Jining, Shandong), Taining's military governor Qi Kerang to Yiwu Circuit (義武, headquartered in modern Baoding, Hebei), and Yiwu's military governor Wang Chucun to Hezhong.

Wang Chongrong, incensed, refused to report to Taining and aligned himself with Li Keyong, who had then become the military governor of Hedong Circuit (河東, headquartered in modern Taiyuan, Shanxi).

Wang Chongrong and Li Keyong then joined forces and engaged the Shence/Jingnan/Fengxiang armies at Shayuan (沙苑, in modern Weinan, Shaanxi) in winter 885.

It was said that, by this point, the people of the realm were thoroughly disgusted with Tian, and Zhu and Li Changfu, ashamed of aligning with him, also turned against him, and sent soldiers to chase after Emperor Xizong.

They were not successful, however, and the imperial guards subsequently took control of Xingyuan, forcing Zhu's ally Shi Junshe (石君涉) to flee.

[8] Meanwhile, Tian's former subordinate and adoptive son Wang Jian had taken his soldiers and made them into a band of roving raiders, loosely aligned with Gu Yanlang the military governor of Dongchuan.

[10] As he was facing death, Tian tore apart linen strips and stated to the executioner, "I had previously overseen the 10 armies [(i.e., the imperial guards)].

[1] Hong Kong actor Kent Tong portrayed Tian Lingzi in the 2014 Chinese television series The Great Southern Migration.