The Revolt of the Altishahr Khojas (Chinese: 大小和卓之亂) was an uprising against the Qing dynasty of China, which broke out in 1757 during the reign of the Qianlong Emperor.
After the Qing conquest of Dzungaria at the end of the Dzungar–Qing Wars in 1755, the Khoja Brothers were released from Dzungar captivity whereupon they began to recruit followers in the Western Regions around Altishahr.
Not long afterwards, the Khoit-Oirat prince Amursana rose up against the Qing and the Khoja Brothers used the opportunity to seize control of the south west part of Xinjiang.
In 1759, the rebel army fled west through the Pamir Mountains to Badakhshan (now part of north east Afghanistan) where it was captured and destroyed by the ruling Sultan Shah, causing the revolt to subside.
The ancestor of the Khoja brothers was Ahmad Kasani (1461–1542) also known as Makhdūm-i`Azam, "the Great Master" of the Central Asian Naqshbandi Sufi Sect.
In the middle of the Ming dynasty (1368-1644), the Black Mountain Khoja received approval from the ruling Yarkand Khanate for the Altishahr or Tarim Basin area south of the Tian Shan range in the Western Regions to convert to Islam.
After Tsewang Rabtan succeeded to the leadership of the Dzungar Khanate in 1697 he imprisoned the descendants of the Altishahr Khojas in what is now known as Ili Kazakh Autonomous Prefecture.
Afaq's second grandson Buranidun [zh], the "Elder Khoja", was imprisoned east of Yili at Elinhabi'erga (額林哈畢爾噶) (now Yilianhabi'ergaishan 依连哈比尔尕山) in the custody of the local Dzungar Tribal Administrator or Zaisang (宰桑), Abagasi (阿巴噶斯) and his brother Hadan (哈丹).
In the end, Dawachi, who was the grandson of Khong Tayiji Tsewang Rabtan's cousin Tsering Dhondup (大策凌敦多布), became Khan.
[8] He then demanded permission to travel to Beijing and seek the emperor's assistance in defeating Dawachi and retaking Ili and neighbouring Kashgar.
On 8 April 1755, Buranidun surrendered to Salar's Western Route Army saying "At the time of Galdan Tseren, my father was imprisoned and thus far I have not been released.
Ban Di planned to send Buranidun to Beijing for presentation to the emperor while Hojijan would be kept in Ili in the care of the nomadic Muslim Taranchi.
The Us Beg[B] Khojis (霍集斯; Huò jísī) received orders from Ban Di to establish sentry posts on the mountain passes into the Tarim Basin.
[14] As a result, Ban Di dispatched the Imperial Bodyguard, Tuoluntai (托倫泰), and Khojis as protective escort on the journey south to Kashgar and Yarkand.
"[C][16] As a result, before the military expedition to Ili had set out and fearing the rise of a new Mongolian empire, Qialong had proclaimed that the four Oirat clans of Dzungaria would be resettled in their own territory each with their own Khan appointed directly by Beijing.
Amursana spurned the offer of khanship over the Khoits and told Ban Di to inform the Emperor that he wanted control of all the Oirats.