As civil conflicts took hold in Iran, most of Azerbaijan was occupied by the Ottomans from 1722 to 1736. Between 1722 and 1735, during the reign of Peter the Great, the Caspian coast (including Derbent, Baku and Salyan) came under Imperial Russian rule as a result of the Russo-Persian War.