Tian Ji'an was born in 781 or 782, during the reign of Emperor Dezong of Tang. At that time, his father Tian Xu was an officer under Tian Xu's cousin Tian Yue, the military governor of Weibo Circuit, who governed the circuit semi-independently from the imperial regime. Tian Ji'an was Tian Xu's third son, and was born of a mother of lowly birth. After Tian Xu assassinated Tian Yue and succeeded him in 784, Emperor Dezong gave Tian Xu his daughter Princess Jiacheng in marriage in 785. As she had no son of her own, she adopted Tian Ji'an as her son. He was thus made the deputy military governor and Tian Xu's designated successor. When Tian Xu died suddenly in 796, the Weibo soldiers supported Tian Ji'an as acting military governor, and Emperor Dezong made him military governor later in the year. Tian Ji'an also inherited Tian Xu's title as Prince of Yanmen.
In 806, Tian Ji'an was further given the honorary chancellordesignation of Tong Zhongshu Menxia Pingzhangshi. It was said that in Tian's youth, his behavior was curbed in by Princess Jiacheng's sternness, and that while he was not capable, he followed the rites and the laws. After Princess Jiacheng died, however, he lost self-control, and he spent his time on polo, hunting, and pleasure. In 809, after the death of Wang Shizhen the military governor of neighboring Chengde Circuit, Emperor Dezong's grandson Emperor Xianzong, then emperor, was taking a harder line against the circuits acting as semi-independent states, and for months he refused to approve the succession of Wang Shizhen's son Wang Chengzong. Emperor Xianzong finally agreed after Wang Chengzong agreed to allow two of Chengde's prefectures, De and Di be separated into a different circuit under imperial control, to be named Baoxin Circuit. He made Xue Changchao the prefect of De Prefecture, whose wife was from the Wang clan, the military governor of the new circuit. However, when Tian received news of this in advance of the news arriving at Chengde, he informed Wang Chengzong that Xue had betrayed him. In response, Wang Chengzong had Xue arrested and refused to submit the two prefectures. Emperor Xianzong thereafter ordered a campaign against Chengde, and with the main imperial forces — the Shence Army, commanded by the eunuchTutu Chengcui — set to arrive in Weibo's vicinity, Tian was summoning his officers to discuss how to react — fearing that if the imperial forces were successful against Chengde, Weibo would be next. An officer stepped out and advocated a preemptive attack against the Shence Army, and Tian was ready to agree. However, at that time, Tan Zhong, an emissary from Liu Ji the military governor of Lulong Circuit, happened to be at Weibo, and he, trying to dissuade Tian from acting against imperial troops, pointing out if Weibo were in fact able to defeat the Shence Army, Emperor Xianzong would surely concentrate his attack on Weibo. Instead, Tan suggested, Weibo should enter into a secret agreement with Chengde whereas Weibo would launch a false attack on Chengde and capture a county to outwardly show Emperor Xianzong that he was not rebelling against imperial authority. Tian agreed with Tan, and in a pre-arranged attack captured Chengde's Tangyang County. Meanwhile, it was said that by this point, Tian was cruel. On one occasion, when his secretary Qiu Jiang had a dispute with another staff member of Tian's, Hou Zang, Qiu drew Tian's anger, and Tian initially had Qiu demoted to be a county sheriff. He then recalled Qiu but dug a large hole on Qiu's way back, and when Qiu reached the hole, he ordered that Qiu be thrown into the hole and buried alive. Meanwhile, one of his officers, Tian Xing, a distant relative, was favored by the soldiers and often tried to advise him to correct his behavior. Tian Ji'an believed Tian Xing to be a threat and sent him out of the headquarters to serve as the defender of Linqing. He also considered executing Tian Xing, and Tian Xing, in order to escape death, pretended to suffer paralysis in his limbs. Meanwhile, in 812, Tian Ji'an himself fell ill from a stroke, and his wife Lady Yuan summoned the officers and named his 10-year-old son Tian Huaijian deputy military governor. , Tian Huaixun, and Tian Huairang Tian Ji'an soon died and was given posthumous honors. With Emperor Xianzong refusing to approve Tian Huaijian's succession, the soldiers supported Tian Xing and overthrew Tian Huaijian in a coup.