Mahmud al-Kashgari mentioned the Yagma and Tukhsi tribes, with a clan of Chigils, along the Ili River. In the tenth century the Yagma tribe lived in the Kashgar area and further northwest. Al Gardezi, who used sources composed in the eighth century, wrote that the Yagma united numerous tribes between the Uyghurs and Karluks in the larger part of the eastern Tian Shan, including Kashgar City and District. Gardezi called the Yagma a "rich people with large herds of horses" in a country of "one month of travel". The Yagma constantly clashed with the Karluks and the Kimaks, and were a dependent of the Western Turkic Kagans until their demise.