ゴレスターン条約
The war ended in 1813 with the Treaty of Gulistan which ceded the previously disputed territory of Georgia to Imperial Russia, and also the Iranian territories of Dagestan, most of what is nowadays Azerbaijan, and minor parts of Armenia.