Qara Khitai

TheQara Khitai, orKara Khitai(simplified Chinese:哈剌契丹;traditional Chinese:喀喇契丹;pinyin:Kālā Qìdānor Chinese:黑契丹; pinyin:Hēi Qìdān;lit.'BlackKhitan'),also known as theWestern Liao(Chinese:西遼; pinyin:Xī Liáo), officially theGreat Liao(Chinese:大遼; pinyin:Dà Liáo),was a dynastic regime based inCentral Asiaruled by theYelüclan of theKhitan people.Being arump stateof the Khitan-ledLiao dynasty, Western Liao was culturallySinicizedto a large extent, especially among the elites consisting of Liao refugees.
The dynasty was founded byYelü Dashi(Emperor Dezong), who led the remnants of the Liao dynasty fromManchuriato Central Asia after fleeing from theJurchen-ledJin dynastyconquest of northern China. The empire was usurped by theNaimansunderKuchlugin 1211; traditional Chinese, Persian, and Arab sources consider the usurpation to be the end of the dynasty,even though the empire would not fall until theMongol conquestin 1218. Some remnants of the Qara Khitai would form theQutlugh-Khanid dynastyin southern Iran.
The territories of the Qara Khitai corresponded to parts of modern-dayChina,Kazakhstan,Kyrgyzstan,Mongolia,TajikistanandUzbekistan. TheAnushtegin dynasty, theKarluks,Qochokingdom, theKankalis, and theKara-Khanid Khanatewerevassal statesof the Qara Khitai at some point in history. Chinese and Muslim historiographical sources, such as theHistory of Liao, considered the Qara Khitai to be a legitimateChinese dynasty.
The Qara Khitai took on trappings of a Chinese state and inherited the dynastic name "Great Liao".Hence, Chinese, Korean, Japanese and Vietnamese historians generally refer to the empire as the "Western Liao", emphasizing its continuation from theLiao dynasty.
The name "Qara Khitai", commonly used by Central Asian tribes to refer to the dynasty, is also commonly used in Western scholarly works. The term is often translated as theBlack Khitansin Mongolian, but its original meaning is unclear today.In Modern Mongolian, "Kara-Khitan" is rendered "Хар Хятан" (Khar Khyatan). Since no direct records from the empire survive today, the only surviving historical records about the empire come from foreign sources.
"Black Khitans" (黑契丹) has also been seen used in Chinese. "Qara," which literally means "black," corresponds with the Liao's dynastic color black and its dynastic element water, according to the theory offive elements(wuxing).The Jurchens referred to the empire as "Dashi" or "Dashi Linya" (after its founder), to reduce any claims the empire may have had to the old territories of the Liao dynasty. Muslim historians initially referred to the state simply as "Khitay" or "Khitai;" they may have adopted this form of "Khitan" via theUyghursofKochoin whose language the final -n or -ń became -y.Only after the Mongol conquest did the state begin to be referred to in the Muslim world as the "Kara-Khitai" or "Qara-Khitai."Khitan is the origin of "Cathay", aEuropean name for China.
The Qara Khitai empire, also known as the Western Liao dynasty, was the remnant offshoot of theKhitan-ledLiao dynasty. From 1114 to 1125, theJurchen-ledJin dynastyconquered the Liao. In 1122, two groups of Khitans fled westward to escape the Jin invasion. One of these groups was led byYelü Dashi, who joined the Liao emperor,Tianzuo, at the border of theWestern Xiakingdom. Dashi was captured by the Jin in 1123 and forced to lead them to Tianzuo's camp, resulting in the capture of the entire Liao imperial family except for Tianzuo and one of his sons. Dashi later rejoined Tianzuo but the emperor was captured in early 1125 and died at the Jin court in 1128.
In 1124, Yelü Dashi fled northwest and established his headquarter at the military garrison of Kedun (Zhenzhou) on theOrkhon River. Dashi secured the allegiance of the garrison forces numbering 20,000 and set himself up asgurkhan(universal khan).He conquered two Jin tribes in 1129.In 1130, Dashi led his host further west in search of new territory. Within a year, he had established himself as suzerain ofQochoand gained a foothold inTransoxiana. In 1131, he attacked theKarakhanidsatKashgarbut was repelled.He later returned in 1134 and conquered the Karakhanid city ofBalasaghun(in modernKyrgyzstan), resulting in the vassalization of the nearbyKankalis,Karluks,Kyrgyz, and theKingdom of Qocho.Kashgar,Khotan, andBeshbalik.In 1137, he defeated the Western Karakhanids nearKhujandand annexedFerganaandTashkent. Yelü Dashi's host was further bolstered by 10,000 Khitans who had previously been subjects of the Karakhanids. They went on to conquerKashgar,Khotan, andBeshbalik.
The Western Karakhanids were vassals of theSeljuk Empireand the Karakhanid ruler Mahmud II appealed to his Seljuk overlordAhmad Sanjarfor protection. In 1141, Sanjar with his army arrived inSamarkand. The Khitans were invited by theKhwarazmians(also a vassal of the Seljuks) to conquer the lands of the Seljuks and responded to an appeal to intervene by theKarlukswho were involved in a conflict with the Karakhanids and Seljuks.
Khitan forces ranging from 20,000 to 700,000 depending on the source met in battle with Seljuk forces numbering 100,000.While many Muslim sources suggested that the Khitan forces greatly outnumbered the Seljuks, some contemporary Muslim authors also reported that the battle was fought between forces of equal size.The Khitans were also said to have been given a reinforcement of 30,000–50,000 Karluk horsemen.
TheBattle of Qatwantook place on the Qatwan steppe, north of Samarkand, on 9 September 1141.The Khitans attacked the Seljuk forces simultaneously, encircled them, and forced the Seljuq center into awadicalled Dargham, about 12 km from Samarkand. Encircled from all directions, the Seljuq army was destroyed and Sanjar barely escaped. Figures of the dead ranged from 11,000 to 100,000.Among those captured at the battle were Seljuq military commanders and Sanjar's wife.The Seljuk defeat resulted in the loss of all of Transoxiana to the Khitans.
After his victory, Yelü Dashi spent 90 days in Samarkand, accepting the loyalty of Muslim nobles and appointing Mahmud's brother Ibrahim as the new ruler of Samarkand. Dashi allowed the Muslim Burhan family to continue to ruleBukhara. After this battle, Khwarazm became a vassal state of the Khitans. In 1142, Dashi sent Erbuz to Khwarazm to pillage the province, which forcedAtsizto agree to pay 30,000 dinars annual tribute.
The Qara Khitai in 1143 constituted a realm encompassing a territory roughly equivalent to modernXinjiang,Kyrgyzstan,Uzbekistan,Tajikistan, and southKazakhstan. Under the empire's direct rule was the region around their capital,Balasagun. Around it were the subject kingdoms ofQocho, the eastern and westernKarakhanids,Khwarazm, and theKarluktribes. Its western border was defined by theAmu Darya, but the Khitans were active inKhorasanuntil the 1180s whileBalkhremained under their rule until 1198. In the north they bordered theYenisei Kyrgyznorth ofLake Balkhashuntil 1175 when they retreated further south. The southern boundary stretched from Balkh toKhotantoHami. The boundary of the empire in the east is hard to define but the Khitans exercised some sovereignty over theNaimanseast of theAltai Mountainsuntil 1175.
Simultaneously during the invasion of Central Asia, Dashi also sent invasion forces to attack the Jin and retake Liao territory, however these efforts proved fruitless and ended in defeat.Yelü Dashi had originally hoped to recapture northern China from theJin dynastyand restore the territories once held by the Liao dynasty.However, he soon discovered the relative weakness of his empire vis-a-vis the Jin dynasty and gave up the ideaafter a disastrous attack on the Jin dynasty in 1134.The Western Liao continued to defy Jin supremacy in 1146, and continued sending scouts and small military units against the Jin in 1156, 1177, 1185, 1188. This indicates that for the first 2 generations there remained considerable interest in reconquest.
When Yelü Dashi died, his wife and paternal cousin,Xiao Tabuyan(1143-1150), became regent for their son. Tabuyan used the honorific titles of empress Gantian, Gurkhan, and Dashi. Her successors retained the titles of Gurkhan and Dashi. While theHistory of Liaostates that Tabuyan was merely a regent, Muslim sources state that she held unlimited power over the realm as is implied by her titles.
Taking advantage of Dashi's death, the Oghuz invadedBukharabut were likely driven off sometime before 1152, when they were located inKhuttalandBalkh. In 1143, theSeljuksultanAhmad SanjarattackedKhwarazmand occupiedKhorasan. AlthoughAtsizonce again became a Seljuk subject, in practice he continued to pay tribute to the Qara Khitai. According toIbn al-Athir, Atsiz was only spared due to Sanjar's fear of the Khitans. Sanjar may have also wielded power in Transoxiana until his death, as implied by an 1148 coin minted in Bukhara. In 1144, Qocho offered tribute to theJin. The Jin sent a messenger named Niange Hannu to the Qara Khitai. When he met Tabuyan in 1146, he refused to dismount in her presence and proclaimed that he had come from a superior court as an emissary of the Son of Heaven and demanded her to show obeisance to the Jin court. When he threatened that the Jin were ready to send an army to invade their lands, the empress executed him. His fate only became known to the Jin in 1175 as a result of deserters from the Qara Khitai.
The son,Yelü Yilie, ruled from 1150 to 1163. The only known act he was involved in according to theHistory of Liaoduring his 13 year reign was taking a census of people over 18 years old. The result was 84,500 households in total. The small number, less thanSamarkand's 100,000 households in the pre-Mongol era, was likely due to being geographically limited to only Balasagun and the surrounding area that the Khitans directly ruled. It is unknown if even the sedentary population was counted in the census.
During Yilie's reign, theOghuzrebelled againstAhmad SanjarinKhorasan. The Khitans were at least partly responsible for this due to displacing the Oghuz in Transoxiana and pushing them into Balkh, where they were heavily taxed by Sanjar due to his losses at Qatwan. The Oghuz rebellion was caused by the governor of Balkh, Amir Qumach, who had enlisted Oghuz support against theGhuridsin 1152. However the Oghuz defected to the Ghurids, allowing them to temporarily occupy Balkh. After retaking the city, Qumach increased the tax burdens on the Oghuz. In 1153, the Oghuz killed a Seljuk tax collector and Qumach retaliated by attacking them. In the conflict that followed, Qumach and his sons were killed, and Sanjar was defeated and captured. The Oghuz plundered Khorasan whil Sanjar escaped captivity in 1156 but failed to restore his former authority. He died the following year.
There is no evidence that the Khitans were directly involved in the conflict of Khorasan, however the Turkic leaders all paid tribute to them to gain their favor during this time. The lack of Khitan involvement may be due to conflict with the Jin to the east. In 1156, a Jin army led by Po Longdun met with a Qara Khitan raiding group several hundred strong at Kedun. The Khitan force withdrew after negotiations. Khitans under Jin rule rebelled in 1161. One of the rebel leaders, Saba, planned to defect to the Qara Khitai, but was killed by another Khitan leader, Yelü Wowo, who proclaimed himself the new Khitan emperor. Wowo was killed by the Jurchens in 1163.
The Qara Khitai played a key role in the conflict between their vassals: the Karluks, Karakhanids, and Khwarazm. In early 1156, the Karluks killed Ibrahim Tabghach Khan, the Western Karakhanid ruler of Samarkand. Ibrahim was succeeded by his son, Mahmud, for a year before Ibrahim's brother, Ali Chaghri Khan, took power. Ali wanted to avenge his brother and soon after his accession, killed one of the Karluk leaders. In early 1156, the Karluks fled to Khwarazm and sought the help of its ruler,Il-Arslan, who sent an army against Samarkand. Ali sent for help from his sovereign, the Qara Khitai, who instructed the ruler of the Eastern Karakhanids to come to his aid. The Eastern Karakhanids sent 10,000 riders to reinforce Samarkand, however the Khwarazmian force was too large to comfortably engage, and a truce was achieved with the help of religious dignitaries. The Karluks were reinstalled to their former posts and Il-Arslan returned to Khwarazm. The Karluks continued to cause trouble for Samarkand until the Qara Khitai ordered the Western Karakhanids to drive them from Bukhara and Samarkand to Kashgar. Mas'ud Tabghach Khan, the brother of Ibrahim, took the occasion to purge Transoxiana of the Karluks.
Yelü Pusuwan(r. 1164–1177) was explicitly chosen for succession by her brother,Yelü Yilie. Known as Empress Chengtian, Pusuwan refocused the Qara Khitai's attention westward. In 1165, the Qara Khitai participated in Mas'ud Tabghach Khan's invasion of Balkh andAndkhud, then under Oghuz domination, and incorporated Balkh under Qara Khitai rule lasting until 1198. In 1172, the Qara Khitai crossed the Amu Darya to attack Khwarazm, whose rulerIl-Arslanhad neglected to pay tribute. Il-Arslan fell ill on the way to battle and let a Karluk commander lead his forces while he remained behind. The Khwarazmian army was soundly defeated and Il-Arslan returned to Khwarazm where he died in March 1172. However no new tribute collection agreement was enforced, possibly due to satisfaction from the spoils that the Qara Khitai had already collected from their victory.
Il-Arslan's death led to a succession struggle between his two sons in which the Qara Khitai were involved. The younger son,Sultan Shah, was enthroned with the aid of his mother,Terken Khatun, who ruled in his name. The older brother,Tekish, fled to the Qara Khitai court and asked for their support in installing him as the new ruler of Khwarazm in return for a share of its treasures and annual tribute. Pusuwan sent her husband, Xiao Duolubu, with a large army to support Tekish's claim. Sultan Shah and his mother fled Khwarazm and Tekish was enthroned on 11 December, 1172. Terken Khatun enlisted the help ofMu'ayyid al-Din Ai-Aba, a former Seljuk amir, to fight for their cause. However he was defeated and executed in Khwarazm in July 1174. Sultan Shah and his mother then fled toDihistan, which Tekish then conquered and put to death Terken Khatun. Sultan Shah fled to Tughan Shah, the son of Mu'ayyid, inNishapur, and then to theGhurids.
Tekish soon fell out with the Qara Khitai. Despite owing his crown to them, Tekish found the conduct of their emissaries to be insulting and their demands exceeding the original agreement. In the mid 1170s, Tekish killed the leader of the emissaries who was part of the Qara Khitai royal family, and ordered the Khwarazmian notables (ayan) to kill every Qara Khitai who entered Khwarazm. Pusuwan summoned Sultan Shah, who had already been in contact wih the Qara Khitai court after realizing the Ghurids would not challenge Tekish for his claim, and sent a large army with him led by her husband to oust Tekish.
During the conflict with Khwarazm, the Qara Khitai also faced rebellions by tribes to the north and east. In the early 1170s, the Qara Khitai sent an imperial son-in-law named Abensi against the Yebulian and other tribes in the north. Abensi could not defeat them and the conflict lasted until 1175. In the same year, the Naimans and Kangly surrendered to the Jin. In 1177, the Qara Khitai sent spies into Jin territory and news of them reached the Jin court. In response, the Jin resettled the Khitans in the northwest to the northeast. In addition, the border market ofSuidewas closed due to fear that it was being used as a hub for spies.
While her husband was away, Pusuwan developed a romantic relationship with his brother, Xiao Fuguzhi. She planned to get rid of her husband in order to spend more time with his brother, however her father-in-law caught wind of her plans and conducted a coup. Xiao Wolila surrounded the palace with his troops and killed both his son and the empress.
Xiao Wolila installedYelü Zhilugu(r. 1178–1211), the second son ofYelü Yilie, on the throne.
At the time of Zhilugu's accession, a large Qara Khitai army under the command of the late empress's husband, Xiao Duolubu, was accompanying Sultan Shah to Khwarazm. Tekish managed to halt the Qara Khitai advance by flooding the Amu Darya's dikes and blocking their path. Xiao Duolubu decided to retreat but Sultan Shah offered him a large sum in return for leaving part of his troops behind. These troops accompanied Sultan Shah to fight against the Oghuz in Khorasan. In 1181, they helped him seizeMerv,Sarakhs, Nasa, andAbiward.
In 1181, theKipchaksunder Qara Ozan Khan, established in a marriage alliance with Tekish, attackedTalasin Qara Khitai territory.
In 1182, Tekish attacked Bukhara. According to his own description, the city dwellers preferred the rule of non-believers to his Muslim army. Tekish captured the city but it is uncertain how long he held it. The lack of references as well as dismissive portrayal of his time there, referred to as "the business in Transoxania,"probably implies a short duration. By 1193, Bukhara was again ruled by the Karakhanid vassal of the Qara Khitai. Praises of Ibrahim Arslan Khan, the Karakhanid ruler, were sung by the Bukharansadraround this time.
The conflict between Tekish and his brother Sultan Shah continued in Khorasan until 1193 when Sultan Shah died. Although Tekish took precautions to guard the Amu Darya against Qara Khitai support of his brother during the conflict, the Qara Khitai offered no further responses to the matter. It is likely that there was a rapprochement between Tekish and the Qara Khitai court before 1194 and at the very latest before 1198, when the Qara Khitai aided Tekish against the Ghurids. The cessation of hostilities was probably a financial agreement as several Muslim sources assert that Tekish dutifully paid tribute to the Qara Khitai and ordered his son to continue to do so.
In the east, there is some vague evidence according toSong dynastyspy reports that the Qara Khitai had tried to ally with theTangutWestern Xiadynasty to attack the Jin in 1185. Although nothing came of it, the Jin evidently took the Qara Khitai threat seriously. In 1188, Wanyan Xiang, a leading Jin official, came back from a tribute collecting mission among the northern tribes and presented to the emperor a detailed program and map to prevent their subjects from defecting to the Qara Khitai. Wanyan Xiang was promoted for his contributions. In 1190, one of the Qara Khitai subject tribes surrendered to the Jin, which may have been the result of this new policy.
In the early 1190s, the khan of theKeraites,Toghrul, fled to the Qara Khitai seeking military support after he was ousted by his own family. When no support was forthcoming, Toghrul returned to Mongolia in 1196 seekingTemüjin's help. Toghrul later made an alliance with the Jin, through which he received his other title,  Ong Khan, in 1197.
In 1198,Muhammad of Ghor, one of theGhuridrulers, seized Balkh from the vassal of the Qara Khitai. The Qara Khitai were urged by the Khwarazm Shah Tekish (who was also in conflict with the Ghurids) not to let this slide, as the other Ghurid rulerGhiyath al-Din Muhammadwould seize Khwarazm and Transoxiana. The Qara Khitai invaded Ghurid lands around Kurzuban (around modernTaloqan). At first they were victorious, killing and capturing many Ghurid soldiers, but they were surprised by an attack in the night. When Ghiyath al-Din's reinforcements arrived in the morning, the Qara Khitai army was badly defeated, suffering 12,000 losses. The Qara Khitai turned to Tekish for compensation for the damage incurred and sent Xiao Duolubu to Khwarazm to collect. Tekish in turn asked the Ghurids for help. Ghiyath al-Din agreed to help with the compensation on the condition that Tekish offered his obedience to the Caliph and returned territories taken earlier by the Qara Khitai. As a result, Khwarazm managed to provide some manner of compensation to the Qara Khitai for their losses incurred fighting against the Ghurids, using Ghurid funds. Tekish died in 1200 and his sonMuhammad II of Khwarazmstarted his reign as a tributary of the Qara Khitai.
The Ghurids took advantage of Tekish's death to conquer certain parts of Khorasan, including Merv and Sarakhs, where they installed Hindu Khan, Muhammad II's nephew, as their subject. In September 1201, Muhammad II marched on Merv. Hindu Khan tried to escape to the Qara Khitai, but he was killed before reaching them. Muhammad II's conflict with the Ghurids in Khorasan continued for several years. In 1204, Muhammad of Ghor attacked Khwarazm directly. Muhammad II hurried back to Khwarazm and opened the dikes and burned the meadows in an effort to slow the Ghurid advance. The Khwarazmian forces suffered a heavy defeat against the Ghurids near a canal east ofGurganjand Muhammad II fled to the Qara Khitai. The Qara Khitai sent to his aid a force of 10,000 or 40,000 led by Tayangu and the Karakhanid rulersUthman ibn Ibrahimand his cousin Taj al-Din Bilge Khan, the ruler ofOtrar. The Ghurids retreated south upon receiving news of Qara Khitai reinforcements.
The sequence of events after the Ghurid retreat is unclear. One version of events has the Ghurids being pursued by Khwarazmian forces until they fell into Qara Khitai hands. Another version states that the Ghurids first won a victory against the Qara Khitai before being overtaken from exhaustion. According to another version, the Ghurids split their forces while fleeing from the Khwarazmian army and the Qara Khitai caught them in the desert. The Qara Khitai then attacked the Ghurids with 20,000 horsemen while a strong wind blowing towards the Ghurids resulted in a Qara Khitai victory. All versions of events, however, agree that the Qara Khitai chased the Ghurids toAndkhud, a village between Merv and Balkh, where Muhammad of Ghor took refuge in a castle. As the Qara Khitai were about to capture him, Uthman intervened and negotiated the Ghurids' surrender. This act has been attributed to solidarity between Muslim leaders. According to one account, Uthman advised the Ghurids to move their forces in and out of the castle by night to create the appearance of reinforcements arriving, thereby boosting their negotiating position. Tayangu and the Qara Khitai agreed to let Muhammad of Ghor go in return for a ransom payment. According to one account, the payment was everything Muhammad of Ghor had in his possession, while another account states that the payment was much more modest, consisting of one elephant and an additional payment. The Ghurids kept Balkh and the Amu Darya was agreed upon as the border between the two realms.
Muhammad of Ghor later returned to avenge himself against the Qara Khitai. In the summer of 1205, the Ghurid viceroy in Balkh seizedTirmidhand destroyed a Qara Khitai army stationed there. Plans were underway for a bridge to be built across the Amu Darya to facilitate a Ghurid invasion of Transoxiana. However before any of this came to fruition, Muhammad of Ghor was killed on 13 March, 1206 and the Ghurid invasion came to an end.
Muhammad II of Khwarazm convinced the governor of Tirmidh to surrender and returned it to Qara Khitai control. In return, the Qara Khitai recognized the Khwarazm Shah's suzerainty over all of Khorasan.
Muhammad II saw the Qara Khitai's recognition of his claims as a sign of weakness and started interfering in Transoxiana in 1207 when Sanjar, son of a shield maker, revolted against local leadership in Bukhara. Representatives of the Burhan family, who were responsible for tax collection, went to the Qara Khitai court for help. While the Qara Khitai reaffirmed the Burhan family's position, they offered no concrete assistance. In the absence of Qara Khitai backing, the notables of Bukhara and Samarkand sought out Muhammad II for help. Before challenging the Qara Khitai, Muhammad II made preparations by compromising with the Ghurids on certain domains and enlisting the aid of the Karakhanid rulerUthman ibn Ibrahim, who had been insulted by the Qara Khitai's refusal to grant him a royal princess in marriage.
In 1207, Muhammad II entered Bukhara and exiled Sanjar to Khwarazm. The Qara Khitai sent an army against him and warfare continued for some time before Tort-Aba, the new Khwarazmian commissioner in Samarkand, and theisfahbadof Kabud-Jama (inTabaristan) defected to the Qara Khitai. Both sides retreated but the Qara Khitai took many captives. There are accounts that Muhammad II was actually taken captive at one point but was not recognized and released.
During Muhammad II's absence, his brother Ali Shah (viceroy in Tabaristan) and Kozli (commander inNishapur) had tried to set themselves up as rulers of Khorasan. When Muhammad II returned, Kozli fled and both he and his son were killed soon after, and Ali Shah fled toFiruzkuh. Muhammad II restored his position in Khorasan by conquering Herat and Firuzkuh. In 1208-9, Ali Shah was executed. Khwarazm returned to paying tribute to the Qara Khitai in 1209-10 when Muhammad II was planning a campaign against the Kipchaks. Not wanting to sever relations with the Qara Khitai at that moment, Muhammad II left the matter of tribute to his mother, who welcomed the Qara Khitai emissaries with great respect. However Mahmud Tai, the Qara Khitai's chief vizier, was unconvinced and reported that Muhammad II was unlikely to pay tribute again.
Late in the period it expanded far to the south as theKhwarezmian Empireuntil it was conquered by theMongolsin 1220, two years after the Qara Kitai. In the south the Kara-Khanid vassals were lightly held and engaged in various conflicts with each other, the Qara Kitai, Khwarezm and the Gurids.
In 1204, the Qara Khitai put down a rebellion inKhotanandKashgar. In 1209,Qochorebelled against the Qara Khitai. The Qara Khitai commissioner was chased into a high building where he was put to death. The Uyghur ruler,Barchuq Art Tegin, reported the incident to the Qara Khitai, but at this point individuals at Qocho had already started defecting to the Mongols. WhenGenghis Khan's messengers arrived at Qocho, the Uyghur ruler offered his allegiance to the Mongol khan. Genghis gave Barchuq his daughter in return for his attendance at court as well as a sizable tribute. In late 1209 or early 1210, whenMerkitrefugees arrived in Qocho, Barchuq attacked them and drove them off. He made haste to report his loyal behaviour to Genghis, accompanying it with tribute. In 1211, the Uyghur Idiqut had an audience with Genghis on theKerulen River. In the same year, another vassal of the Qara Khitai, the Karluk Arslan Khan surrendered to Genghis.
In 1208, a Naiman prince,Kuchlug, fled his homeland after being defeated by Mongols. Kuchlug was welcomed by the Qara Khitai, and was allowed to marry Zhilugu's daughter. However, in 1211, Kuchlug revolted, and later captured Yelü Zhilugu while the latter was hunting. Zhilugu was allowed to remain as the nominal ruler but died two years later, and many historians regarded his death as the end of the Qara-Khitai empire. In 1216,Genghis Khandispatched his generalJebeto pursue Kuchlug; Kuchlug fled, but in 1218, he was finally captured and decapitated. The Mongols fully conquered the former territories of the Qara-Khitai in 1220.
The Qara Khitais became absorbed into theMongol Empire; a segment of the Qara-Khitan troops had previously already joined the Mongol army fighting against Kuchlug.  Another segment of the Qara-Khitans, in a dynasty founded byBuraq Hajib, survived inKirmanas a vassal of the Mongols, but ceased to exist as an entity during the reign ofÖljaitüof theIlkhanate.The Qara-Khitans were dispersed widely all over Eurasia as part of the Mongol army. In the 14th century, they began to lose their ethnic identity, traces of their presence however may be found as clan names or toponyms fromAfghanistantoMoldova. Today a Khitay tribe still lives in northern Kyrgyzstan.
The Khitans ruled from their capital atBalasagun(in today'sKyrgyzstan), directly controlling the central region of the empire. The rest of their empire consisted of highly autonomous vassalized states, primarilyKhwarezm, theKarluks, theKingdom of Qochoof theUyghurs, theKankalis, and the Western, Eastern, and FerganaKara-Khanids. The late-arrivingNaimansalso became vassals, before usurping the empire underKuchlug.
The Khitan rulers inherited many administrative elements from the Liao dynasty, including the use ofConfucianadministration and imperial trappings. The empire also adopted the title ofGurkhan(universal Khan). The Khitans used theChinese calendar, maintained Chinese imperial and administrative titles, gave its emperors reign names, used Chinese-styled coins, and sent imperial seals to its vassals.Although most of its administrative titles were derived from Chinese, the empire also adopted local administrative titles, such astayangyu(Turkic) andvizier.
The Khitans maintained their old customs, even in Central Asia. They remained nomads, adhered to their traditional dress, and maintained the religious practices followed by the Liao dynasty Khitans. The ruling elite tried to maintain the traditional marriages between the Yelü king clan and the Xiao queen clan, and were highly reluctant to allow their princesses to marry outsiders. The Qara-Khitai Khitans followed a mix ofBuddhismand traditional Khitan religion, which includedfire worshipand tribal customs, such as the tradition of sacrificing a gray ox with a white horse. In an innovation unique to the Qara Khitai, the Khitans paid each of their soldiers a salary.
The empire ruled over a diverse population that was quite different from its rulers. The majority of the population was sedentary, although the population suddenly became more nomadic during the end of the empire, due to the influx ofNaimans. The majority of their subjects were Muslims, although a significant minority practiced Buddhism andNestorianism. Although Chinese andKhitanwere the primary languages of administration, the empire also administered inPersianandUyghur.
InChinese historiography, the Qara Khitai is most commonly called the "Western Liao" (西遼) and is considered to be an orthodoxChinese dynasty, as is the case for theLiao dynasty.The history of the Qara Khitai was included in theHistory of Liao(one of theTwenty-Four Histories), which was compiled officially during theYuan dynastybyToqto'aet al.
After the fall of theTang dynasty, various dynasties of non-Hanethnic origins gained prestige by portraying themselves as the legitimate dynasty of China. Qara Khitai monarchs used the title of "Chinese emperor",and were also called the "Khan of Chīn".The Qara Khitai used the "image of China" to legitimize their rule to the Central Asians. The Chinese emperor, together with the rulers of the Turks, Arabs, India and the Byzantine Romans, were known to Islamic writers as the world's "five great kings".Qara Khitai kept the trappings of a Chinese state, such as Chinese coins, Chinese imperial titles, the Chinese writing system, tablets, seals, and used Chinese products like porcelain, mirrors, jade and other Chinese customs. The adherence to Liao Chinese traditions has been suggested as a reason why the Qara Khitai did not convert toIslam.Despite the Chinese trappings, there were comparatively few Han Chinese among the population of the Qara Khitai.These Han Chinese had lived in Kedun during the Liao dynasty,and in 1124 migrated with the Khitans underYelü Dashialong with other people of Kedun, such as theBohai, Jurchen, and Mongol tribes, as well as other Khitans in addition to the Xiao consort clan.
Qara Khitai's rule over the Muslim-majorityCentral Asiahas the effect of reinforcing the view among some Muslim writers that Central Asia was linked to China even though the Tang dynasty had lost control of the region a few hundred years before.Marwazīwrote thatTransoxaniawas a former part of China,while Fakhr al-Dīn Mubārak Shāh defined China as part of "Turkestan", and the cities ofBalāsāghūnandKashgharwere considered part of China.
The association of Khitai with China meant that the most enduring trace of the Khitan's power is names that are derived from it, such asCathay, which is the medieval Latin appellation for China. Names derived from Khitai are still current in modern usage, such as the Russian, Bulgarian, Uzbek and Mongolian names for China.However, the use of the name Khitai to mean "China" or "Chinese" byTurkicspeakers within China, such as theUyghurs, is considered pejorative by the Chinese authorities, who tried to ban it.
In Autumn of the year 2019 aChinese type bronze sealwas discovered near aCaravanseraithat was located near theUstyurt Plateau.This seal has a weight of 330 grams and has the dimensions of 50x52x13 millimeters with a handle that is 21 millimeters in height.The inscription of the seal is written inKhitan large scriptand contains 20 characters.This was the first seal that could be confidently attributed to the a Western Liao period as it is attributed to have been created during the 3rd month of the year Tianxi 20 (or the year 1197 in theGregorian calendar) during the reign of EmperorYelü Zhilugu.The discovery of this seal further indicated that the Qara Khitai Khanate adopted the Chinese administrative practice, as such seals were commonly used in the Imperial Chinese government apparatus.
As of 2020 it is unclear if the same regulations on seals existed in Qara Khitai as did in imperial China and if the sizes of Western Liao seals were standardised or not.