Treaty of Gulistan
The Russian Empire consolidated its power over the Karabakh Khanate following the Treaty of Gulistan in 1813 and Treaty of Turkmenchay of 1828, when following two Russo-Persian wars, Persia recognized Karabakh Khanate which dissolved in 1806, along with many other khanates, as part of Russia.