Ikhshid (Persian: اخشید; from Sogdian: xšyδ, əxšēδ) was a princely title used by the rulers of Sogdia and the Ferghana Valley in Transoxiana during the pre-Islamic and early Islamic periods. The title is of Iranian origin; scholars have derived it variously from the Old Iranian root khshaeta, meaning "shining, brilliant," or from khshāyathiya, meaning "ruler, king" (which is also the origin of the title shah). These Old Iranian terms are etymologically related to the Sanskrit word Kshatriya, the Hindu caste of warriors and princes.
The Ikhshids of Sogdia, with their capital at Samarkand, are well attested during and after the Muslim conquest of Transoxiana. The line survived into Abbasid times, although by then its seat was in Istikhan. One of the most notable Soghdian kings was Gurak, who in 710 overthrew his predecessor Tarkhun and for nearly thirty years maintained a precarious autonomy between the expanding Umayyad Caliphate and the Türgesh Khaganate through shifting alliances.
Arab historians report that the title was also used by the ruler of the Principality of Farghana during the same period. Ibn al-Athir records that the Ikhshid of Ferghana called upon the Chinese for aid against the Arabs, leading to the Battle of Talas (751 CE).
The prestige of the title remained high in Central Asia into the 10th century. It was adopted by the Turkic commander Muhammad ibn Tughj, who was granted the title al-Ikhshid by the Abbasid Caliph al-Radi in 935 CE and subsequently founded the Ikhshidid dynasty, which ruled Egypt, the Levant, and the Hejaz until the Fatimid conquest in 969 CE.