From the 17th century to the middle of the 18th century, between China proper and Transoxania, all the land was under the sway of the Dzungars. In Semirechye the Kyrgyz and Kazakahs were forcibly driven out by the Dzungars and the Kashgar Khanate was conquered. However, the Dzungar Empire was annihilated by Qing China from 1755 to 1758 in a formidable assault, ending the Central Asian states danger from the Dzungar menace. Uighur Muslims like Emin Khoja from Turfan revolted against their Dzungar Buddhist rulers and pledged allegiance to Qing China to deliver them from Dzungar Buddhist rule. The Qing crushed and annihilated the Dzungars in the Dzungar genocide.