Tian Huaijian () (b. 802) was a general of the Chinese dynasty Tang Dynasty, who, in his childhood, briefly served as the ruler of Weibo Circuit (魏博, headquartered in modern Handan, Hebei), which had been held by his family for generations. The soldiers soon overthrew him and replaced him with his distant relative Tian Xing, and he was delivered to the Tang capital Chang'an. Background Tian Huaijian was born in 802, during the reign of Emperor Dezong. Prior to his birth, his family had held Weibo Circuit for generations, ruling it in a de facto independent manner from the imperial regime, with his great-grandfather Tian Chengsi, Tian Chengsi's nephew Tian Yue, Tian Huaijian's grandfather Tian Xu, and father Tian Ji'an successively serving as the military governors (Jiedushi) of Weibo. His mother was Tian Ji'an's wife Lady Yuan, a daughter of the general Yuan Yi (). He had least three brothers – Tian Huaili (), Tian Huaixun (), and Tian Huairang (), with the Old Book of Tang implying that he was older than his brothers and the New Book of Tang implying that he was younger than his brothers. In 812, Tian Ji'an fell ill, and it was said that in his illness, he killed his subordinates at will, and the headquarters fell into chaos. Lady Yuan summoned the officers and had them support Tian Huaijian as deputy military governor, acting as military governor. Tian Ji'an was moved out of the headquarters into a separate residence, and he died a month later, on September 21, 812. Brief reign of Weibo After Tian Ji'an's death, one of the officers who had been supported by the soldiers, Tian Xing – a son of Tian Chengsi's cousin Tian Tingjie () – was recalled from his post to serve as the commander of the army. Meanwhile, because of Tian Huaijian's youth, the servant Jiang Shize () came to be making the key decisions, and Jiang made movements that were based on his own likes and dislikes, causing the soldiers to be disgruntled. Further, the reigning Emperor Xianzong (Emperor Dezong's grandson) was withholding the official commission for Tian Huaijian, hoping to cause a mutiny at Weibo. One morning, when Tian Xing was set to enter the headquarters to meet Tian Huaijian, the soldiers surrounding him bowed to him, asking him to be active military governor. Tian Xing agreed on condition that the soldiers would not