The Qara Khitai, or Kara Khitai (simplified Chinese: 哈剌契丹; traditional Chinese: 喀喇契丹; pinyin: Kālā Qìdān or Chinese: 黑契丹; pinyin: Hēi Qìdān; lit. 'Black Khitan'), also known as the Western Liao (Chinese: 西遼; pinyin: Xī Liáo), officially the Great Liao (Chinese: 大遼; pinyin: Dà Liáo), was a dynastic regime based in Central Asia ruled by the Yelü clan of the Khitan people. Being a rump state of the Khitan-led Liao dynasty, Western Liao was culturally Sinicized to a large extent, especially among the elites consisting of Liao refugees.
The dynasty was founded by Yelü Dashi (Emperor Dezong), who led the remnants of the Liao dynasty from Manchuria to Central Asia after fleeing from the Jurchen-led Jin dynasty conquest of northern China. The empire was usurped by the Naimans under Kuchlug in 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 the Mongol conquest in 1218. Some remnants of the Qara Khitai would form the Qutlugh-Khanid dynasty in southern Iran.