Tian Lingzi (田令孜) (died 893), courtesy name Zhongze (仲則), formally the Duke of Jin (晉公), was a powerful eunuch during the reign of Emperor Xizong of Tang. During most of Emperor Xizong's reign, he had a stranglehold on power due to his close personal relationship with Emperor Xizong as well as his control over the eunuch-commanded Shence Armies, even throughout Emperor Xizong's flight to Xichuan Circuit (西川, headquartered in modern Chengdu, Sichuan) in the face of Huang Chao's agrarian rebellion. Late in Emperor Xizong's reign, he was forced to give up his powerful position after his dispute with the warlord Wang Chongrong led to multiple rebellions that rendered the Tang court virtually powerless over the warlords, and he was given refuge by his brother Chen Jingxuan, the military governor of Xichuan. In 891, however, Chen was defeated by Wang Jian and forced to surrender Xichuan to Wang. In 893, Wang put Chen and Tian to death.