Mongol conquest of Western Xia

The Mongol conquest of Western Xia was a series of conflicts between the Mongol Empire and the Western Xia dynasty, also known as Xi-Xia, the Tangut Empire, or Minya, and comprised the first stages in the Mongol invasions of China. Hoping to gain both plunder and a powerful vassal state, Mongol leader Genghis Khan commanded some initial raids against Western Xia before launching a full-scale invasion in 1209. Despite a major set-back during a nearly year-long siege of the capital, Yinchuan, when the diverted river accidentally flooded their camp, the Mongols convinced Emperor Li Anquan to surrender in January 1210. For nearly a decade the Western Xia served the Mongols as vassals and aided them in the Mongol–Jin War, but when Genghis invaded the Islamic Khwarazmian dynasty in 1219, Western Xia attempted to break away from the Empire and ally with the Jin and Song dynasties. Angered by this betrayal, in 1225 Genghis Khan sent a second, punitive expedition into Western Xia. Genghis intended to annihilate the entire Western Xia culture, and his campaign systematically destroyed Western Xia cities and the countryside, culminating in the siege of the capital in 1227 along with forays into Jin territory. Near the end of the siege, in August 1227, Genghis Khan died from an uncertain cause, though some accounts say he was killed in action against Western Xia. After his death, Yinchuan fell to the Mongols and most of its population was massacred.

Background
The Western Xia dynasty, also called Xi-Xia, the Tangut Empire, or Minya, emerged in 1038, and eventually covered what are now the northwestern Chinese provinces of Ningxia, Gansu, eastern Qinghai, northern Shaanxi, northeastern Xinjiang, southwest Inner Mongolia, and southernmost Outer Mongolia. A fairly small state, Western Xia struggled for dominance with its larger and more powerful neighbors, the Liao dynasty to the east and northeast, and the Song dynasty to the southeast. When the Jin dynasty emerged in 1115 and displaced the Liao, Western Xia eventually accepted vassal status to the new empire. Aiding Jin in their wars against the Song, Western Xia gained thousands of square miles of former Song territory. However, over many years the relations between Western Xia and Jin gradually declined.

Upon the death of its fifth ruler, Emperor Renzong, Emperor Huanzong took the throne and Western Xia's power began to fail. Though militarily inferior to the neighboring Jin, the Western Xia still exerted a significant influence upon the northern steppes. The state often welcomed deposed Kerait leaders because of close trade connections to the steppes and because of the possibility of using the refugees as pawns in the Mongolian Plateau. In the late 1190s and early 1200s, Temujin, soon to be Genghis Khan, began consolidating his power in Mongolia. Following the death of the Kerait leader Ong Khan to Temujin's emerging Mongol Empire in 1203, Keriat leader Nilqa Senggum led a small band of followers into Western Xia. However, after his adherents took to plundering the locals, Nilqa Senggum was expelled from Western Xia territory.

Preliminary raids
Using his rival Nilga Senggum's temporary refuge in Western Xia as a pretext, Temujin launched a raid against the state in 1205 in the Edsin region. The Mongols plundered border settlements and one local Western Xia noble accepted Mongol supremacy. During a raid on on Ganzhou (present-day Zhangye), the Mongols captured the son of the city's commander. This young boy joined Mongol service and took a Mongol name, Chagaan, and eventually rose through the ranks to become commander of Temujin's personal guard. The next year, 1206, Temujin was formally proclaimed Genghis Khan, ruler of all the Mongols, marking the official start of the Mongol Empire, while Li Anquan killed Huanzong of Western Xia in a coup d'état and installed himself as Emperor Xiangzong. In 1207, Genghis led another raid into Western Xia, invading the Ordo region and sacking Wulahai, the main garrison along the Yellow River, before withdrawing in 1208. Genghis then began preparing for a full-scale invasion. By invading Western Xia, he would gain a tribute-paying vassal, and also would take control of caravan routes along the Silk Road and provide the Mongols with valuable revenue. Furthermore, from Western Xia he could launch raids into the even more wealthy Jin dynasty.

First invasion
In 1209, Genghis undertook his campaign to actually conquer Western Xia. Li Anquan requested aid from the Jin dynasty, but the new Prince Shao of Wei refused to send aid, stating that "It is to our advantage when our enemies attack each other. Wherein lies the danger to us?" After defeating a force led by Kao Liang-Hui outside Wulahai, Genghis captured the city and pushed up along the Yellow River, defeating several cities as he went, until he reached the fortress Kiemen which guarded the only pass through the Helan Mountains to the capital, Yinchuan. Containing an army of up to 70,000, plus 50,000 reinforcements, the fortress proved too difficult to capture, and after a two-month stand-off the Mongols feinted a retreat, luring the garrison, led by Wei-ming Ling-kung, out onto the field where it was easily destroyed. His path now open, Genghis advanced to the capital. Well fortified, Yinchuan held about 150,000 soldiers, nearly twice the size of the Mongol army. One of their first endeavors at siege warfare, the Mongols lacked the proper equipment and experience to take the city. They arrived at the city in May, but by October were still unsuccessful at breaking through. Genghis attempted to flood the capital by diverting the river and its network of irrigation canals into the city, and by January 1210 the walls of Yinchuan were nearly breached. However, the dike used to divert the river broke, and the ensuing flood wiped out the Mongol camp, forcing the Mongols to take higher ground. Despite this setback, the Mongols still posed a threat to Western Xia, and with the state's crops destroyed and no relief coming from the Jin, Li Anquan agreed to submit to Mongol rule, demonstrating his loyalty by giving a daughter, Chaka, in marriage to Genghis and paying a tribute of camels, falcons, and textiles.

Western Xia as a Mongol vassal
In 1210, Western Xia attacked the Jin dynasty as punishment for their refusal to aid them against the Mongols. The following year, the Mongols joined Western Xia and began a 23-year long campaign against Jin. The same year Li Anquan abdicated the throne, and subsequently died, after Shenzong seized power.

However, despite aiding the Mongols against Jin, in 1217 when Genghis Khan requested help for his Central Asian campaigns, Western Xia refused to commit troops, and as a warning the Mongols besieged the capital before withdrawing. In 1219, Genghis Khan launched his campaign against the Khwarazmian dynasty in Central Asia, and requested military aid from Western Xia. However, the emperor and his military commander Asha refused to take part in the campaign, stating that if Genghis had too few troops to attack Khwarazm, then he had no claim to supreme power. Infuriated, Genghis swore vengeance and left to invade Khwarazm, while Western Xia attempted alliances with the Jin and Song dynasties against the Mongols.

Second invasion
After defeating Khwarazm in 1221, Genghis prepared his armies to punish Western Xia for their betrayal. Meanwhile, Emperor Shenzong stepped down from power in 1223, leaving his son, Xianzong, in his place. In 1225, Genghis Khan attacked with a force of approximately 180,000. After taking Khara-Khoto, the Mongols began a steady advance southward. Asha, commander of the Western Xia troops, could not afford to meet the Mongols as it would involve an exhausting westward march from the capital Yinchuan through 500 kilometers of desert. With no army to meet them in pitched battle, the Mongols picked the best targets for attack and as each city fell the Mongols would draw on prisoners, defectors, supplies, and weapons to take the next one. Enraged by Western Xia's fierce resistance, Genghis engaged the countryside in annihilative warfare and ordered his generals to systematically destroy cities and garrisons as they went. Two months after taking Khara-Khoto, the Mongols reached a point where the Qilian Mountains force the Etsin River eastward, about 300 kilometers south of Khara-Khoto. At this point, Genghis divided his army, sending general Subutai to take care of the westernmost cities, while the main force moved east into the heart of the Western Xia Empire. Genghis lay siege to Suzhou, which fell after five weeks. Genghis then moved to Ganzhou, the hometown of his general Chagaan. Chagaan's father still commanded the city garrison, so Chagaan attempted negotiations with him. However, the second-in-command of the city staged a coup, killed Chagaan's father, and refused to surrender. The city took five months to subdue, and though the now furious Genghis threatened vengeance, Chagaan convinced him to only kill the 35 conspirators who killed Chagaan's father.

In August 1226, Genghis escaped the heat by residing in the Qilian Mountains while his troops approached Wuwei, the second-largest city of the Western Xia empire. As no relief came from the capital, Wuwei decided to surrender and avoid certain destruction. At this point, Emperor Xianzong died, leaving Mozhu to deal with a collapsing state as the Mongols encroached on the capital. In Autumn, Genghis rejoined his troops, took Liangchow, crossed the Helan Shan desert, and in November lay siege to Lingwu, a mere 30 kilometers from Yinchuan. Here, in the Battle of Yellow River, Western Xia led a counter-attack with an estimated force of over 300,000 troops, engaging Mongol forces along the banks of the frozen river and canal systems. The Mongols destroyed the Western Xia troops, supposedly counting 300,000 bodies of Western Xia soldiers after the battle.

Upon reaching Yinchuan in 1227 and setting siege to the city, Genghis prepared to invade the Jin dynasty in order to neutralize any threat of them sending relief troops to Western Xia as well as setting the stage for a final conquest of the Jin empire. Genghis sent a force under his son Ogedai and commander Chagaan toward the southern border, and they pushed into Jin territories along the Wei River and south Shaanxi, even sending some troops over the Qin Mountains to threaten Kaifeng, the Jin capital. Genghis himself rejoined with Subedai and headed southwest to slice across an approximately 150 kilometer-wide territory mainly in present-day Ningxia and Gansu. Subedai crossed the northern parts of the Liupan mountain range, zigzagging from town to town throughout February and March, and conquered the Tao River valley and Lanzhou region. Meanwhile Genghis went due south, following the Qing Shui river.

Back in Western Xia, Yinchuan lay besieged for about six months, and Genghis, himself busy directing a siege of Longde, sent Chagaan to negotiate terms. Chagaan reported that the emperor agreed to capitulate, but wanted a month to prepare suitable gifts. Genghis agreed, though secretly planned to kill the emperor. During the peace negotiations, Genghis continued his military operations around the Liupan mountains near Guyuan, rejected an offer of peace from the Jin, and prepared to invade them near their border with the Song. However, in August 1227, Genghis died of a historically uncertain cause, and, in order not to jeopardize the ongoing campaign, his death was kept a secret. In September of 1227, Emperor Mozhu surrendered to the Mongols and was promptly executed. The Mongols then mercilessly pillaged Yinchuan, slaughtered the city's population, plundered the imperial tombs west of the city, and completed the effective annihilation of the Western Xia state.

Death of Genghis Khan
In August 1227, during the fall of Yinchuan, Genghis Khan died. The exact cause of his death remains a mystery, and is variously attributed to being killed in action by Western Xia, falling from his horse, illness, or wounds sustained in hunting or battle. Some historians maintain that he fell off his horse during a horseback pursuit from the land of present day Egypt due to battle wounds and physical fatigue, dying of his injuries. The Galician-Volhynian Chronicle alleges he was killed by the Western Xia in battle, while Marco Polo wrote that he died after the infection of an arrow wound he received during his final campaign. Later Mongol chronicles connect Genghis' death with a Western Xia princess taken as war booty. One chronicle from the early 17th century even relates that the princess hid a small dagger and stabbed him, though some Mongol authors have doubted this version and suspected it to be an invention by the rival Oirads.

Aftermath
The destruction of Western Xia during the second campaign was near total. According to John Man, Western Xia is little known to anyone other than experts in the field precisely because of Genghis Khan's policy calling for their complete eradication. He states that "There is a case to be made that this was the first ever recorded example of attempted genocide. It was certainly very successful ethnocide." However, some members of the Western Xia royal clan emigrated to western Sichuan, northern Tibet, even possibly northeast India, in some instances becoming local rulers. A small Western Xia state was established in Tibet along the upper reaches of the Yarlung River, while other Western Xia populations settled in what are now the modern provinces of Henan and Hebei. In China, remnants of the Western Xia persisted into the middle of the Ming dynasty.

The Mongol Empire, at last successful in defeating Western Xia despite the death of Genghis, now, under Genghis Khan's successors, concentrated on subduing the rest of China. The Jin dynasty, already reeling from great losses of land and troops due to the ongoing Mongol campaign since 1211, finally collapsed in 1234. The Kingdom of Dali in southwest China fell in an invasion in 1253, and the Song dynasty of southern China, after over four decades of a conflict begun 1235, surrendered in 1279.