title: Principality of Farghana
text: # Principality of Farghana
  
  The Principality of Farghana (also spelled Ferghana, Fergana, and Fargana), was a local Iranian dynasty of Sogdian origin, which ruled the Farghana region from an unknown date to 819. The rulers of the region were known by their titles of “ikhshid” and “dehqan”. The capital of the principality was Akhsikath.
  
  ## History
  
  The principality of Farghana was under Western Turk rule until it was destroyed by Tang China in 657 and after that under the Anxi Protectorate. It was invaded by the Umayyad Arab general Qutayba ibn Muslim during the Muslim conquest of Transoxiana. Farghana, along with Khujand, was shortly raided after Qutayba's victory over Gurak.
  
  In 715, Qutayba completely subdued Farghana, and made it a vassal state of the Umayyad Caliphate. During the reign of the Umayyad caliph Sulayman ibn Abd al-Malik (r. 715–717), the ikhshid ("king") of Farghana revolted against Umayyad authority, but was shortly defeated and killed. He was buried in Andijan. After the death of Qutayba (also in 715), Ferghana was taken back by Chinese general Zhang Xiaosong (張孝嵩).
  
  In cities such as Panjikant and Pai, the Sogdians revolted; the most dangerous being the rebellion of 720-722 under Divashtich and Karzanj, who gained the support of the ikhshid of Ferghana, known as at-Tar (also spelled Alutar). At-tar promised to give them protection in case their rebellion turned into a failure. While the army of Karzanj was staying at Khujand, at-Tar betrayed him, and told the Umayyad general Sa'id ibn Amr al-Harashi where Karzanj and his army was stationing. Al-Harashi quickly marched towards Khujand, where he defeated the army of Karzanj, brutally massacring over 3,000 Sogdian inhabitants in the city. He then marched towards Zarafshan, where he defeated and captured Divashtich, who was later executed. Sa'id thus managed to restore Umayyad control over Transoxiana, except Ferghana.
  
  In 723, a Umayyad army under Muslim ibn Sa'id al-Kilabi invaded Ferghana, and devastated the countryside. However, an army under the Turgesh khagan Suluk came to the rescue for their Ferghanian allies, and won a crushing victory over the Arabs in the so-called "Day of Thirst". In 726, Farghana became divided between two ikhshids, one ruling in the north and as a vassal of the Turgesh. In 729, an ikhshid of Farghana aided the Turgesh during the Siege of Kamarja, and two years later the Turgesh was aided by Ferghana during the Battle of the Defile. In 739, a Turk named Arslan Tarkhan, conquered Ferghana. However, at the same time Ferghana was invaded by the Umayyad general Muhammad ibn Khalid Azdi. Nevertheless, the ikhshids of Ferghana are still mentioned in sources. Ferghana was in 740 ravaged by another Umayyad general named Nasr ibn Sayyar. In 750, the Umayyad Caliphate fell, and was replaced by the Abbasid Caliphate. Farghana joined the Chinese side in the battle of Talas in 751. Nevertheless, Farghana remained out of Arab control from 715 until late 700s.
  
  ### Samanids
  
  In 819, the governor of Khurasan, Ghassan ibn 'Abbad, appointed the Samanid prince Ahmad ibn Asad as the ruler of Farghana, thus marking the end of the ancient dynasty which ruled Farghana.
  
  