이세
In 818, during the reign of Emperor Xianzong, Li Shi passed the imperial examinations in the "Jinshi" class. As of 822, during the reign of Emperor Xianzong's son Emperor Muzong, Li Shi was serving as a staff member under Tian Bu the military governor of Weibo Circuit (魏博, headquartered in modern Handan, Hebei). That year, when Tian, loyal to the imperial government but facing soldiers ready to mutiny against him for being loyal, felt he had no choice but to commit suicide, he wrote a final petition urging immediately imperial assistance to two other generals loyal to the imperial government, Li Guangyan and Niu Yuanyi () and entrusted the petition to Li Shi, before committing suicide.