In 1211 Küchlüg, a Naiman prince who had taken the Qara Khitai throne, sent a captive Karakhanid prince back to rule Kashgar. The city's notables killed him before he entered. Küchlüg retook Kashgar and the eastern khanate was never restored; a few years later the Mongols drove him out.