Tang campaign against Karakhoja

Conquest of Karakhoja
Part of Tang campaign against the oasis states

Map of the campaigns against the oasis states of the Tarim Basin, including the defeat of Karakhoja
Date640 CE
Location
Result

Decisive Tang victory

Belligerents
Tang dynasty Karakhoja
Western Turkic Khaganate
Commanders and leaders
Hou Junji
Xue Wanjun
Qibi Heli
Qu Wentai Executed
Qu Zhisheng (POW)
Qu Zhizhan (POW)

The Tang campaign against Karakhoja, known as Gaochang in Chinese sources, was a military campaign in 640 CE conducted by Emperor Taizong of the Tang dynasty against the Tarim Basin kingdom of Karakhoja, based in the city of Turfan in Xinjiang. The Western Turks provided their ally Karakhoja with soldiers, but the army retreated when the Tang forces arrived. Karakhoja surrendered and the kingdom was incorporated as a Tang prefecture.