Kara-Khanid Khanate
Yūsuf Qadr Khān was a brother or cousin of the Muslim ruler of Kashgar and Balasagun, Khotan lost its independence and between 1006 and 1165, became part of the Kara-Khanid Khanate. Later it fell to the Kara-Khitan Khanate, after which it was ruled by the Mongols.