Treaty of Gulistan
As a consequence of the Russo-Persian War (1804-1813) and the resulting Treaty of Gulistan of 1813, Derbent and wider Dagestan were ceded by Qajar Iran to the Russian Empire. For background see Russian conquest of the Caucasus#Caspian Coast.)