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
Location
Result Tang victory
Territorial
changes
Annexation of Karakhoja as a Tang prefecture
Belligerents
Tang dynasty Karakhoja
Western Turkic Khaganate
Commanders and leaders
Hou Junji
Xue Wanjun
Qibi Heli
Qu Wentai 
Qu Zhisheng (POW)
Qu Zhizhan (POW)

The Tang campaign against Karakhoja, known as Gaochang in Chinese sources, was a military campaign in 640 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 Turkic Khaganate 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.