How was the Karabakh Khanate founded?

When Nadir Khan Efshar declared himself Shah on February 26, 1736, he expelled the Javanshir, Otuzikili, and Kabrili tribes in Karabakh that were against his reign to Khorasan and held the leaders of these tribes hostage.[1] According to Mirza Adigozel bey, Nadir Shah also sent Fazlaly Bey, Karabakh Khan Ibrahimkhalil Agha’s first son, into exile in Khorasan. However, Fazlaly Bey expressed anger at the forced removal of the Karabakh population and opposed Nadir Shah’s exile plan. As a result, Nadir Shah ordered Fazlaly Bey to be executed and appointed his brother, Panah Ali Bey, in his place.[2] Although Panah Ali Bey gained Nadir Shah’s respect for his service in the shah’s palace, he was afraid that Nadir Shah might execute him, as he had his brother, due to slander and accusations by the courtiers. Therefore, when Nadir Shah was traveling, he managed to flee the palace and travel to Karabakh while using his family’s visit to Khorasan as a pretext.[3] The Shah was informed about his escape, and he sent couriers after him to prevent him from running away. He also instructed the leaders of Ganja, Tiflis, and Shirvan to capture Panah khan wherever they saw him and send him to the shah’s palace. However, all Nadir Shah’s efforts were unsuccessful. Panah Ali Bey managed to free himself from Nadir Shah’s persecution by hiding in the Karabakh Mountains and near Shaki Fortress.[4]

The overthrow of Nadir Shah on June 20, 1747, by his own courtiers and the beginning of the struggle within the country to gain the reign brought an end to the country created by Nadir Shah.[5] The power struggle and internal turmoil in Iran caused by the death of Nadir Shah became a turning point for Azerbaijan. Although there was a possibility of creating a centralized state in Azerbaijan, the existence of feudal fragmentation, weakness of the economic relations, and preponderance of the natural economy hindered the unification in terms of the unified and centralized state. As a result, Azerbaijan disintegrated into independent and semi-independent khanates and sultanates (small kingdoms or city-states). As well as the collapse of Nadir Shah’s empire, the power struggle between Tsarist Russia and the Ottoman Empire in the mid-eighteenth century prevented these powerful forces from intervening in Azerbaijan’s internal issues, paved the way for the creation of these independent and semi-independent khanates and sultanates. During that period, 20 khanates, including the Karabakh Khanate, and six sultanates were created in the territory of Azerbaijan.

After the death of Nadir Shah, Panah Ali Bey returned to Karabakh and began a political project, which resulted in the establishment of the abovementioned Karabakh Khanate. Panah Ali Bey declared himself Khan of this Khanate. When the Khanate was formed, Panah Ali Khan’s main goal was strengthening it. His first measure was thus to reintegrate the tribes that Nadir Shah had exiled to Khorasan. The return of displaced tribes and families and their resettlement in their native land strengthened the Karabakh Khanate.[6] After gaining the support of the local Azerbaijani tribes in the region, Panah Ali Khan began to act as the sole leader of Karabakh. He managed to unify not only his own Javanshir tribe but also all other tribes living in the Karabakh region of the Safavid Empire’s former Ganja-Karabakh Beylerbeylik.[7] Regarding the Khanate’s foundation date, Mirza Adigozle bey, Ahmad bey Javanshir, and Mir Mehdi Khazani, all well-known historians of the Karabakh Khanate, note that it was created in 1747.[8] In addition, regarding the ancestry and ethnic origin of Panah Ali Khan, all relevant sources assert that he was from the Sarijali branch of the Javanshir tribe that came from Turkistan and settled in the Karabakh region of Azerbaijan.[9] During Panah Ali Khan’s reign, Bayat[10] and Shahbulag[11] fortresses were built, and Shusha (also known as Panahabad) was founded (1751-1756). In 1759, Fatali Khan Afshar, the Khan of Urmia Khanate, sent his envoys to Panah Ali Khan with the order to subordinate him. However, Panah Ali Khan rejected his order. When Fatali Khan got the negative answer, he moved to Karabakh Khanate with great troops and encircled Shusha. After a six-month siege, Panah Ali Khan accepted Fatali Khan’s order and handed over his son, Ibrahimkhalil Agha.[12] Soon, Kerim Khan Zend began to fight against Fatali Khan Afshar and tried to get assistance from the rivalries of the Fatali Khan, including Panah Ali Khan. While seeing this invitation of Kerim Khan as a chance to avenge Fatali Khan Afshar and liberate his son Ibrahimkhalil Agha, Panah Ali Khan appointed his little son Mehrali Bey to his post temporarily and went to Urmia to help Kerim Khan Zend. In 1763, after nine months of long besiege, Fatali Khan was defeated. Ibrahimkhalil Agha was freed from prison and went back to Karabakh. However, Kerim Khan did not allow Panah Ali Khan to return to Karabakh. He took all khans of Azerbaijan, including Panah Ali Khan, with him to Shiraz and Panah Ali khan stayed there until the end of his life (1763). His corpse was brought back to Karabakh and buried in Aghdam.[13]

After Panah Ali Khan died in 1763, his son Ibrahimkhalil Agha became the khan of the Karabakh Khanate (1763-1806). During Ibrahimkhalil Khan’s reign, the Khanate became even stronger. Although the Karabakh Khanate was subjected to military attacks by the Fatali Khan, the Khan of Guba Khanate three times, and Agha Muhammed Shah Gajar two times during the reign of Ibrahimkhalil Khan, he managed to preserve and defend the independence of the Karabakh Khanate. Ibrahimkhalil Khan built strong ties with the Ottoman Empire.[14] In 1805, Ibrahimkhalil Khan signed the Kurakchay Treaty, which officially incorporated the Karabakh Khanate into the Russian Tsarist Empire.[15] Although Ibrahimkkhalil Khan initially accepted these changes to be part of the Tsarist Empire, he later felt quick repentance. During political turbulence in 1806, Russians killed Ibrahimkhalil Khan with 17 family members and associates in the summer of that year in Khankendi, and his son Mehdigulu became khan of the Karabakh Khanate. Realizing the illegitimacy of the Russian officers’ actions, the official authorities of Tsarist Russia gave Mehdigulu Khan the rank of major-general to appease the population and presented him with “royal credentials” for the Karabakh khanate. However, later on, Mehdigulu Khan escaped to Iran and the Karabakh Khanate was officially abolished by the decree of the Russian Tsar in 1822.[16]


[1] Cavanşir, Əhməd bəy, “Qarabağ xanlığının 1747-1805-ci illərdə siyasi fəaliyyətlərinə dair,” in Akif Fərzəliyev (ed.), Qarabağnamələr (Bakı: Yazıçı, 1989), p. 157.

[2] Adıgözəl bəy, Mirzə, “Qarabağnamə,” in Akif Fərzəliyev (ed.), Qarabağnamələr (Bakı: Yazıçı, 1989), p. 110.

[3] Xəzani, Mir Mehdi, “Kitabi-tarixi-Qarabağ,” in Nazim Axundov (ed.), Qarabağnamələr, Vol. 2 (Bakı: Yazıçı, 1991), p. 106. See also: Axundov, Nazim, Qarabağ salnamələri (Bakı: Yazıçı, 1989), p. 32.

[4] Xəzani, “Kitabi-tarixi-Qarabağ,” p. 107.

[5] Bakıxanov, Abbasqulu Ağa, Gülüstani İrəm (Bakı, 1951), pp. 158-159. See also: Xəzani, “Kitabi-tarixi-Qarabağ,” p. 104. See also: Azərbaycan tarixi, Vol. 3, (1999), p. 387.

[6] Adıgözəl bəy, “Qarabağnamə,” p. 33.

[7] Cavanşir, “Qarabağ xanlığının 1747-1805-ci illərdə siyasi fəaliyyətlərinə dair,” p. 158.

[8] Xəzani, “Kitabi-tarixi-Qarabağ,” p. 114.

[9] Adıgözəl bəy, “Qarabağnamə,” p. 31. See also: Qarabaği, “Qarabağ tarixi,” p. 110. See also: Qarabaği, “Tarixi-Safi,” pp. 12-14.

[10] Qarabaği, Mirzə Camal Cavanşir, Qarabağ tarixi (Bakı, 1959), p. 15.

[11] Adıgözəl bəy, “Qarabağnamə,” p. 35.

[12] Bakıxanov, Abbasqulu Ağa, Gülüstani İrəm (Bakı, 1951), p. 158.

[13] Qarabaği, “Qarabağ tarixi,” p. 119. See also: Mirzə Camaloğlu, “Pənah xan və İbrahim xanın Qarabağda hakimiyyətləri və o zamanın hadisələri,” p. 217. See also: Fəna, Mirzə Rəhim, “Tarixi-Cədidi-Qarabağ,” in Nazim Axundov, (ed.), Qarabağnamələr (Bakı: Yazıçı, 1991), p. 256. See also: Əlizadə, Həsən İxfa, “Şuşa şəhərinin tarixi,” in Nazim Axundov, (ed.), Qarabağnamələr (Bakı: Yazıçı, 1991), p. 325.

[14] Dedeyev, Bilal, “Karabağ Hanlığı (1747-1822),” Türk Dünyası Araştırmaları, No. 136, 2002, pp. 39-44.

[15] “Rusiya və Qarabağ xanlığı arasında Kürəkçay müqaviləsi,” in Yaqub Mahmudov and Kərim Şükürov (eds.), Azərbaycan beynəlxalq münasibətlər və diplomatiya tarixi (1639-1828)-Dövlətlərarası müqavilələr və digər xarici siyasət aktları, Vol. 1 (Bakı: Regionların inkişafı ictimai birliyi, 2009), pp. 365-376.

[16] Mustafazadə, Tofiq, Qarabağ xanlığı (Bakı: Sabah, 2010), pp. 209-210.