The Yashkent Khanate were finally overthrown in the 1705, bringing an end to Chagatayid rule in Central Asia. Kashghar begs and Kyrgyz staged a revolt and seized Akbash Khan during an assault on Yarkand. The Yarkand begs then asked the Dzungars to intervene, which resulted in the Dzungars defeating the Kyrgyz and putting a total termination to Chagatai rule by installing the Aq Taghlik in Kashgar. They also helped the Aq Taghlik overcome the Kara Taghlik in Yarkand. A short time later, the Moghul kingdom of Turpan and Hami was also conquered by the Zunghar Khanate, but the Zunghars were expelled by Qing China. Descendants of the Chagatayid house submitted to the Qing and ruled the Kumul Khanate (1696–1930) as vassals of China until 1930. Maqsud Shah was the last of them, who died in 1930. The Tarim Basin fell under the overall rule of the Dzungars until it was taken by the Manchu Emperors of China in the mid-18th century.