Li Qi (李錡; 741 – December 3, 807) was a military governor (Jiedushi) of the Chinese Tang Dynasty, governing Zhenhai Circuit (鎮海, headquartered in modern Zhenjiang, Jiangsu). In 807, he rebelled against the authority of Emperor Xianzong, but he was quickly defeated and captured by his own subordinates who turned against him, and he was delivered to the capital Chang'an and executed. Background and service during Emperor Dezong's reign Li Qi was born in 741, during the reign of Emperor Xuanzong. His father Li Ruoyou (), who was later renamed Li Guozhen () by Emperor Xuanzong's son Emperor Suzong, was a member of Tang Dynasty's imperial Li clan — his fifth-generation ancestor was one of the contributors to Tang's establishment, Li Shentong () the Prince of Huai'an, a cousin of Tang's founding emperor Emperor Gaozu. During the reign of Emperor Suzong, Li Guozhen was killed by soldier mutineers in the service of the imperial cause and, because of Li Guozhen's contributions, Emperor Suzong's grandson Emperor Dezong, during middle of the Zhenyuan era (785-805), had Li Qi serve as the prefect of Hu Prefecture (湖州, in modern Huzhou, Zhejiang) and then Hang Prefecture (杭州, in modern Hangzhou, Zhejiang). As Li Qi often sent bribes to Emperor Dezong's close associate Li Qiyun (), in 799, Li Qi, who was then referred to as the prefect of Chang Prefecture (常州, in modern Changzhou, Jiangsu) was further made the prefect of Run Prefecture (潤州, in modern Zhenjiang, Jiangsu) and governor (觀察使, Guanchashi) of Zhexi Circuit (浙西, headquartered at Run Prefecture) as well as the director of salt and iron monopolies (鹽鐵使, Yantieshi). He further made tributes to Emperor Dezong, drawing Emperor Dezong's favor. As he knew he had Emperor Dezong's favor, he became arrogant and unrestrained in his behavior, and it was said that he seized the salaries of his subordinates and often killed them without good cause. A civilian from Zhexi Circuit, Cui Shanzhen () submitted a petition to Emperor Dezong pointing out the harm that several of Emperor Dezong's policies were having on the people, and in the petition, he accused Li Qi of crimes. Emperor Dezong read the petition and was displeased. He ordered Cui arrested and delivered to Li Qi. Li Qi, in anticipation of Cui's arrival, dug a large hole in the ground, and when Cui arrived, he had Cui thrown into the hole and buried alive. It was