The Tangut Tuoba clan had held Xiazhou since the late Tang; in 1038 Li Yuanhao took the imperial title, naming the state Great Xia, capital at Xingqingfu (Yinchuan) - the Western Xia. It copied Song institutions, created the Tangut script, held examinations, controlled the Hexi corridor and the Hetao, stood on 'valor in war and strictness in law', beat the Song armies repeatedly at Sanchuankou and Haoshuichuan, and maneuvered long among Song, Liao and Jin. The Khara-Khoto documents and the Dunhuang murals witness its Buddhism and its documentary administration. In the 13th century the Mongol Empire rose: Genghis Khan campaigned five times in person, and in 1227 the last Xia ruler surrendered - the state fell and the people scattered; ten rulers, 190 years. The Tangut script lapsed into a dead script, only read again in the 19th century.
Editorial note on dating Tangut (Dangxiang) regime, coexisting with the Song, Liao and Jin.