Division of Azerbaijan between Russia and IranIn the mid XVIII century, with the weakening of the power exercised by the Persian shahs over the territory of Azerbaijan, the country disintegrated into some 20 khanates, namely, Ardabil, Ganja, Derbent, Erivan, Javad, Karabakh, Karadakh, Khoi, Maku, Maragin, Nakhchivan, Quba, Baku, Sarab, Shirvan, Sheki, Tabriz, Talysh and Urumi. In addition to these khanates, the country was further subdivided into the sultanates of Kazah-Samshadil, Ilisu, Arash, Gutgashen and Nagorno-Karabakh, which was inhabited by Azerbaijani Muslims and Albanian Christians, formed an integral part of the Azerbaijani khanate of Karabakh, which covered the territories lying between the Kura and Araxes rivers. The local duchies - or "melikdoms" - of Dizak, Varanda, Khachen, and Gulistan, all of which lay within the mountainous regions of Karabakh, also formed part of this khanate, to which their inhabitants owed allegiance as vassals.
At the end of the eighteenth and in the first third of the nineteenth centuries, Azerbaijan was fought over by the Persian, Russian and Ottoman empires, each eager to secure hegemony over this country whose geopolitical situation lent it significant strategic advantages. A number of the khanates rose in arms to defend their sovereignty, while others were forced, in an effort to defend their own interests, to conclude agreements reducing them to the status of vassaldom.
Thus, on May 14, 1805, a treaty was signed on the banks of the river Kura with the Azerbaijani khan Ibrahim Khalil, under which the independent Azerbaijani khanate of Karabakh was placed under Russian over lordship. This treaty has particular resonance today, since it demonstrates that Karabakh historically formed part of Azerbaijan.
The first Russo-Persian war of 1804-1813, fought to establish dominance over the Azerbaijani khanates, resulted in the first division of Azerbaijani territories between Russia and Persia. The peace treaty of Gulistan, signed on October 12, 1813 by Russia and Persia, gave legal recognition to the effective annexation by Russia of the khanates of northern Azerbaijan, with the exception of Nakhchivan and Erivan. The second Russo-Persian war of 1826-1828 led, on February 10, 1828, to the signing of the Turkmanchai peace treaty, under which Persia officially renounced its claims to northern Azerbaijan and finally recognized its annexation, with the inclusion of the Nakhchivan and Erivan khanates, by Russia.
It is important to stress that all the khanates listed above, including Karabakh, were annexed to Russia as purely Azerbaijani possessions. They were Azerbaijani by virtue of their predominantly Azerbaijani populations and the ethnic composition of their dominant feudal elite (the khans themselves, the major landowners, the clergy etc.).