Treaty of Gulistan
The Russian Empire finally gained control over Karabakh through the Treaty of Gulistan (1813) and Treaty of Turkmenchay (1828) after defeating Iran in the Russo-Persian Wars.