Armenian from Karabakh by origin. The Karabakh Khanate was dissolved, and the area became part of the Caspian oblast, and then of the Elizavetpol governorate within the Russian Empire. Russian rule The Russian Empire annexed the Karabakh Khanate in 1806 and consolidated its power over the area following the Treaty of Gulistan in 1813 and Treaty of Turkmenchay of 1828. Following two Russo-Persian wars, Persia recognized the Karabakh Khanate and many other khanates as part of the Russian Empire. Russia dissolved the Karabakh khanate in 1822. A survey prepared by the Russian imperial authorities in 1823, a year later, and several years before the 1828 Armenian migration from Persia to the newly established Armenian Province, shows that all Armenians of Karabakh compactly resided in its highland portion, i.e. on the territory of the five traditional Armenian principalities, and constituted an absolute demographic majority on those lands. The survey's more than 260 pages recorded that the district of Khachen had twelve Armenian villages and no Tatar (Muslim) villages; Jalapert (Jraberd) had eight Armenian villages and no Tatar villages; Dizak had fourteen Armenian villages and one Tatar village; Gulistan had two Armenian and five Tatar villages; and Varanda had twenty-three Armenian villages and one Tatar village. Only 222 Armenians migrated to lands that were part of the Karabakh province in 1840. During the 19th century, Shusha became one of the most significant cities of Transcaucasia. By 1900 Susha was the fifth city by size of Transcaucasia; it had a theatre, printing houses, etc.; manufacture of carpets and trade were especially developed, having been there for a long time. According to the first Russian-held census of 1823, conducted by Russian officials Yermolov and Mogilevsky, Shusha had 1,111 (72.5%) Azerbaijani families and 421 (27.5%) Armenian families. The census of 1897 showed 25,656 inhabitants, 56.5% of them Armenian and 43.2% Azerbaijani. During the first Russian revolution in 1905, bloody armed clashes between Armenians and Azerbaijanis took place in the fields. October Revolution, 1917 The Russian Provisional Government established after the Russian Revolution of 1917 lasted only until the Bolshevik revolution but Grand Duke Nicholas and the Special Transcaucasian Committee (, osobyy Zakavkazskiy Komitet (OZAKOM)) committee established the Transcaucasian Democratic Federative Republic, of which Karabakh became a part. Following the October Revolution, a government of the local Soviet, led by ethnic Armenian Stepan Shaumyan, was established in Baku: the National Council of Baku (November 1917 –