喀喇汗国
Around the 9th century the Kara-Khanid Khanate rose from a confederation of Turkic tribes living in Semirechye (modern Kazakhstan), Western Tian Shan (modern Kyrgyzstan), and Western Xinjiang (Kashgaria). They later occupied Transoxania. The Karakhanids were made up mainly of the Karluks, Chigils and Yaghma tribes. The capital of Karakhanid Khanate was Balasaghun on the Chu River and then later Samarkand and Kashgar.