dynasty In 881 the Tanguts, who were subjects of Tang China, assisted Tang in suppressing the
Huang Chao rebellion. As a reward the Tang central government granted the Tangut general
Li Sigong the three prefectures of
Xia (, Tangut: ),
Sui (, Tangut: ), and
Yin (, Tangut: ) as hereditary titles under the
Dingnan Jiedushi. After the collapse of Tang China, multiple warlords started to form new states in the former territories of Tang China. The Tanguts expanded their realm southwest towards their old homelands. In 1002 they conquered
Ling Prefecture and set up their first capital there under the name of Xiping. By 1036 they had annexed the
Guiyi Circuit and the
Ganzhou Uyghur Kingdom, even pushing into Tibetan territory and conquering
Xining. The state of Western Xia was proclaimed in 1038. Being subjects of Tang China previously for two centuries, the Tangut people adopted many Han/Tang Chinese culture, but also maintained their own customs, as is proven by the vast amount of literature which survived the Tangut state itself. The Western Xia founder Li Deming's son, Li Yuanhao, enthroned as
Emperor Jingzong, sought to differentiate the Tangut state from that of its rival Han-led Song China and started to nurture a national Tangut identity by ordering the creation of an official
Tangut script and by instituting laws that reinforced traditional Tangut customs. One of the laws he mandated called for citizens to wear traditional ethnic apparel and another required men to wear their hair short or shaved as opposed to the Chinese custom of wearing hair long and knotted. Abandoning the royal Chinese surnames of "Li", previously bestowed by the Tang dynasty Li royal family, and "Zhao", subsequently bestowed by the Song dynasty Zhao royal family, he adopted a Tangut surname , rendered in Chinese as "Weiming" (). He made Xingqing (, modern
Yinchuan) his capital city. In the thirteenth century,
Genghis Khan unified the northern grasslands of
Mongolia and led his troops in six rounds of attacks against the Western Xia over a period of twenty-two years (1205, 1207, 1209–10, 1211–13, 1214–19, 1225–27). During the last spate of the Mongol attacks, Genghis died in Western Xia territory. The official Mongol history attributes his death to illness, whereas legends claim that he died from a wound inflicted in these battles. . 10-13th century. State Hermitage Museum In 1227, the capital of Western Xia was overrun by the Mongols, who devastated its buildings and written records: all was burnt to the ground except its monastery. The last emperor was killed and tens of thousands of civilians massacred. However, many Tangut families joined the Mongol Empire. Some of them led Mongol armies, e.g. Cha'an, into the conquest of China. After the
Yuan dynasty (1271–1368) was established, the Tangut troops were incorporated into the Mongol army in their subsequent military conquests in central and southern China. The Tangut were considered
Semu under the Yuan class system, thus separating them from the North Chinese. As late as the
Ming dynasty (1368–1644), there was evidence of small Tangut communities in Anhui and Henan provinces. The people including members of the royal clan emigrated to western Sichuan, northern Tibet, even possibly northeast India, in some instances becoming local rulers. The Tangut people living in Central China preserved their language until at least the 16th century. ==Culture==