Treaty of Gulistan
Meanwhile, a Russo-Persian war raged on despite France and Russia's efforts to try to reach a settlement between Russia and Persia. In 1812 Persia had to face a major defeat against Russia at the Battle of Aslandoz, forcing the Shah to negotiate the Treaty of Gulistan, on 12 October 1813, which resulted in huge territorial (and eventually irrevocable) integral territorial losses for Iran in its territories in the Caucasus region, comprising modern-day Georgia, Dagestan, and most of the contemporary Republic of Azerbaijan, per the Treaty of Gulistan of 1813.