Li Keyong (born 856, Yingxian, Shanxi province, China—died 908, Shanxi) was a Tang general of Turkish origin who suppressed the great peasant rebellion of Huang Chao (died 884), which threatened the Tang dynasty (618–907) in its last years. Afterward the empire was divided between powerful warlords, and Li became a leading contender for power in North China. Driven out of the central-northern area near the capital at Chang’an (near present-day Xi’an), he established himself in the northwestern province of Shanxi. When Zhu Wen (852–912), Li’s principal competitor, usurped the Tang throne in 907, Li established the independent state of Jin in Shanxi.