The Shule Kingdom was an ancient oasis kingdom of the Taklamakan Desert that was on the Northern Silk Road, in the historical Western Regions of what is now Xinjiang in Northwest China. Its capital was Kashgar, the source of Kashgar's water being a river of the same name. Much like the neighboring people of the Kingdom of Khotan, people of Kashgar spoke Saka, one of the Eastern Iranian languages.
Although a vassal of the Chinese Tang dynasty from the 7th century, Shule was conquered by the Tibetan Empire in the late 8th century and was eventually incorporated into the Kara-Khanid Khanate during the Islamicisation and Turkicisation of Xinjiang.