(856-908), Shatuo warlord in the late
Tang dynasty Early Shatuo (7-8th century) The early Shatuo were originally called the Turks of Shatuo circuit (lit. Shatuo Turks/Shatuo
Tujue). Occasional references were made to the three tribes of the Shatuo: Shatuo, Anqing, and Yinge. The Shatuo population was never large but their warriors had a reputation for being brave and aggressive as well as proficient in siege warfare and archery. They participated in
Emperor Taizong of Tang's
campaigns against
Goryeo in the 640s and performed with distinction despite their ultimate failure. At the same time the Shatuo also came into conflict with neighboring tribes, leading them to further depend on the Tang dynasty for support. In 702, Shatuo Jinshan, ancestor of the future late Tang warlord
Li Keyong, started sending tribute to the Tang court. In 714, Jinshan was invited to
Chang'an where
Emperor Xuanzong of Tang hosted a banquet for him. During the
An Lushan rebellion in the 750s, the Shatuo provided significant military aid to the Tang alongside the
Uyghur Khaganate. Yao Runeng (姚如能) mentioned in the 9th-century
Deeds of An Lushan, two separate tribes
Shatuo 沙陀 and
Zhuye (朱耶) ~
Zhuxie 朱邪, among the non-Chinese tribes in the He and Long regions under
Turko-
Khotanese loyalist superintendent
Geshu Han (哥舒翰, d. 757).
Tang subjects (9th century) In 808, 30,000 Shatuo under Zhuye Jinzhong defected from the Tibetans to Tang China and the Tibetans punished them by killing Zhuye Jinzhong as they were chasing them. The Uyghurs also fought against an alliance of Shatuo and Tibetans at Beshbalik. In 809, the Tang resettled several Shatuo tribes in Hedong (modern northern
Shanxi), also called Jin based on the region's ancient name. The Shatuo there were semi-pastoralists who traded in horse, sheep, and cattle. However their way of life gradually changed over the 9th century as they became more settled and intermarried with border people and the Han Chinese. Their population also increased. In the early 9th century, reports of 6,000-7,000 Shatuo tents point toward a population of just 30,000 people, including women and children. By the end of the 9th century, the Shatuo had 50,000-60,000 male warriors. In 821, Zhuye Zhiyi, the great-grandfather of
Li Keyong, led a failed attack on the rebellious
jiedushi circuit of
Chengde. The Shatuo Turks under Zhuye Chixin (
Li Guochang) served the Tang dynasty in fighting against their fellow Turkic people in the
Uyghur Khaganate. In 839, when the Uyghur khaganate (Huigu) general Jueluowu (掘羅勿) rose against the rule of then-reigning
Zhangxin Khan, he elicited the help from Zhuye Chixin by giving Zhuye 300 horses, and together, they defeated Zhangxin Khan, who then committed suicide, precipitating the subsequent collapse of the Uyghur Khaganate. In the next few years, when Uyghur Khaganate remnants tried to raid Tang borders, the Shatuo participated extensively in counterattacking the Uyghur Khaganate with other tribes loyal to Tang. In 843, Zhuye Chixin, under the command of the Han Chinese officer
Shi Xiong with Tuyuhun, Tangut and Han Chinese troops, participated in a raid against the Uyghur khaganate that led to the slaughter of Uyghur forces at Shahu mountain. The Shatuo ruling family started using Zhuye as their surname. Zhuye Chixin (d. 888) abandoned it after he was bestowed the name
Li Guochang by the Tang emperor for his role in the suppression of
Pang Xun's rebel general, Wang Hongli, in 869. Guochang later upset the Tang court by slaying the governor of
Datong, Duan Wenchu, in 872. In 880, tensions came to a head when Guochang's forces suffered a defeat to Tang mercenaries, costing him a loss of 17,000 men. This led the Shatuo to turn north to their "Tartar" friends for support.
Li Keyong The son of
Li Guochang,
Li Keyong, was a very capable warrior. He was said to be capable of "hitting twin flying ducks from a reclining position" and was called the "Dragon with a Single Eye" because he had an eye that was noticeably larger than the other. He led Shatuo forces to defeat
Huang Chao, who had
rebelled against the Tang and taken
Chang'an in 881. The Shatuo victory in 883 forced Huang Chao to retreat from Chang'an. The then 28-year old Keyong, in charge of the Shatuo after his father's retirement, celebrated in Chang'an the following year. According to
Sima Guang, "Keyong’s contribution to the suppression of Huang Chao was arguably second to none." Despite arguably saving the Tang dynasty, the Shatuo sacked Chang'an in 885. Keyong was appointed prefect of
Daizhou and governor of
Yanmen. From there, he expanded his territory to
Jinyang,
Zezhou, and Liaozhou. In 890, the Shatuo took
Zhaoyi. Jinyang became the Shatuo capital. It was strategically located between two hills more akin to mountains, rising as high as a thousand meters. Combined with craters and dry riverbeds, the location made attacks from the southeast and northwest hazardous. In the west, the
Yellow River made any maneuver costly in time and materiel. Jinyang itself was a fortress city with a wall spanning 20 km with sufficient provisions to last a year. It was seen as "the northern door to the empire" at the time. ==Five Dynasties==