麻赫穆德·喀什噶里
In 1006, the Muslim Kara-Khanid ruler Yusuf Kadir (Qadir) Khan of Kashgar conquered Khotan, ending Khotan's existence as an independent state. The Karakhanid Turkic writer Mahmud al-Kashgari recorded a short Turkic language poem about the conquest: