Trakhan dynasty
The Trakhan dynasty may have been, according to local tradition, a dynasty of rulers in Gilgit and Hunza, established in the 8th-9th century CE after the overthrow of the Patola Shahis. The Trakhan dynasty may have been of Turkic origin, and established following the departure of the Chinese from region circa 760 CE at the time of the An Lushan Rebellion. Various Arab texts and inscriptions record the rule of Turkic rulers in the region of Gilgit at that time, as well as conflicts with Arab forces circa 810-830 CE. The dynasty lasted until 1810. According to  tradition, the founder of the dynasty was an imaginary character named Azur Jamshid (also known as "Shamsher"), a Kayani prince from Persia, who had fled the Arab invasion. He secretly married the daughter of Shri Badat, the last Buddhist ruler of Gilgit. She conspired with him to overthrow her cannibal father. Sri Badat's faith is theorised as Hindu by some and Buddhist by others. However, considering the region's Buddhist heritage, with the most recent influence being Islam, the most likely preceding influence of the region is Buddhism. Prince Azur Jamshid succeeded in overthrowing King Badat who was known  as the "Adam Khor" (literally "man-eater"), often demanding a child a day from his subjects, his demise is still celebrated to this very day by locals in traditional annual celebrations. In the beginning of the new year, where a Juniper procession walks along the river, in memory of chasing the cannibal king "Sri Badat" away. Azur Jamshid abdicated after 16 years of rule in favour of his wife "Nur Bakht Khatùn" until their son and heir "Garg", grew of age and assumed the title of Raja and ruled, for 55 years. The dynasty flourished under the name of the  Kayani dynasty until 1421 when Raja Torra Khan assumed rulership. From this time, the dynasty was named "Trakhan" after him. He ruled as a memorable king until 1475. He distinguished his family line from his stepbrother "Shah Rais Khan" (who fled to the king of Badakshan, and with whose help he gained Chitral from "Raja Torra Khan"), as the now-known dynastic name of Trakhàn. The descendants of "Shah Rais Khan" were known as the "Ra'issiya Dynasty". Gilgit was ruled for centuries by the local Trakhàn Dynasty, which ended about 1810 with the death of Raja Abas, the last Trakhàn  Raja. The rulers of Hunza and Nager also claim origin with the Trakhàn dynasty.