5,000 enemy cavalry led by Burhān al-Dīn ambushed the 600 relief troops at the Battle of Qurman. The Uyghur and Dzungar cavalry were stopped by the Qing zamburak artillery camels, musketry, and archers; Namjil and Machang led a cavalry charge on one of the flanks. Namjil was killed while Machang was unseated from horseback and was forced to fight on foot with his bow. After a hard-fought battle, the Qing forces emerged victorious and attacked the Dzungar camp, causing the Dzungars besieging the Black River to withdraw. After the victory at Qurman, the Qing army overran the remaining rebel towns. Mingrui led a detachment of cavalry and defeated Dzungar cavalry at the Battle of Qos-Qulaq. The Uyghurs retreated from Qos-Qulaq but were defeated by Zhaohui and Fude at the Battle of Arcul (Altishahr) on 1 September 1759. The rebels were defeated again at the Battle of Yesil Kol Nor. After these defeats, Burhān al-Dīn and Khwāja-i Jahān fled with their small army of supporters to Badakhshan. Sultan Shah of Badakhshan promised to protect them but he contacted the Qing dynasty and promised to turn them over. When the fleeing rebels came to the Sultan's capital, he attacked them and captured them. When the Qing army reached Sultan Shah's capital, he handed over the captured rebels to them and submitted to the Qing dynasty. In later years, Durrani Afghanistan and the Khanate of Bukhara invaded Badakhshan and killed Sultan Shah for betraying Khojas to the Qing, while the latter did not respond. Suppression of the Jinchuan hill peoples (1747–1749, 1771–1776) First campaign The suppression of Jinchuan was the costliest and most difficult, and also the most destructive of the Ten Great Campaigns. Jinchuan (lit. "Golden Stream") was located northwest of Chengdu in western Sichuan. Its residents were the Gyalrong tribes, related to the Tibetans of Amdo. The first campaign in 1747–1749 was a simple affair; with little use of force the Qing army induced the native chieftains to accept a peace plan, and departed. Second campaign Interethnic conflict brought Qing intervention back after 20 years. The result was the Qing forces being forced to fight a protracted war of attrition costing the Imperial Treasury several times the amounts expended on the earlier conquests of the Dzungars and Xinjiang. The resisting tribes retreated to their stone towers and forts in steep mountains and could only be dislodged by cannon fire. The Qing