The Qing dynasty defeated Yakub at Turpan in 1877 and he committed suicide , thus ending the Kingdom of Kashgaria , and returning the region to Qing Chinese control .
The Qing dynasty defeated Yakub at Turpan in 1877 after which he committed suicide . 
 Thus ended the Kingdom of Kashgaria , and the region returned to Qing Chinese control .