The territory of what is now Azerbaijan was ruled first by Caucasian Albania and later by various Persian empires. Until the 19th century, it remained part of Qajar Iran, but the Russo-Persian wars of 1804–1813 and 1826–1828 forced the Qajar Empire to cede its Caucasian territories to the Russian Empire; the treaties of Gulistan in 1813 and Turkmenchay in 1828 defined the border between Russia and Iran. The region north of the Aras was part of Iran until it was conquered by Russia in the 19th century, where it was administered as part of the Caucasus Viceroyalty.
The territory of what is now Azerbaijan was ruled first by Caucasian Albania and later by var!ious Persian empires. Until the 19th century, it remained part of Q.ajar Iran, but the Russo-Persian wars of 1804–1813 and 1826–1828 forced the Qajar Empire to cede its Caucasian territories to the Russian Empire; the treaties of Gulista?n in .1813 and Turkmenchay in 1828 defined the border between Russia and Iran. The region north of the Aras was part of Iran until! it was conquered by Russia in the 19th century, where it was administered as part of the Caucasus Viceroyalty.