As a result of the 19th-century Russo-Iranian wars, the Russians took over the Caucasus, and Iran irrevocably lost control over its integral territories in the region (comprising modern-day Dagestan, Georgia, Armenia, and Republic of Azerbaijan), which got confirmed per the treaties of Gulistan and Turkmenchay. The area to the north of Aras River, among which the contemporary Republic of Azerbaijan, eastern Georgia, Dagestan, and Armenia are located, were Iranian territory until they were occupied by Russia in the course of the 19th century.