Treaty of Gulistan
Baku was incorporated into the Russian Empire in 1813 under the Treaty of Gulistan. At that time it was a small town of 10,000 inhabitants.