The Turkic Muslims of the Turfan and Kumul Oases then submitted to the Qing dynasty of China , and asked China to free them from the Dzungars . The Qing accepted the rulers of Turfan and Kumul as Qing vassals . The Qing dynasty waged war against the Dzungars for decades until finally defeating them and then Qing Manchu Bannermen carried out the Dzungar genocide , nearly wiping them from existence and depopulating Dzungaria . The Qing then freed the Afaqi Khoja leader Burhan-ud-din and his brother Khoja Jihan from their imprisonment by the Dzungars , and appointed them to rule as Qing vassals over the Tarim Basin . The Khoja brothers decided to renege on this deal and declare themselves as independent leaders of the Tarim Basin . The Qing and the Turfan leader Emin Khoja crushed their revolt and China then took full control of both Dzungaria and the Tarim Basin by 1759
Dzungar genocide
Dzungar genocide
Xinjiang