In the 17th century, a stalemate between the Ottoman and Safavid empires had been reached by the treaties of
Serav and
Zuhab. However, during the short rule of
Afghanistan based
Hotaki dynasty, chaos in Iran resulted in clashes along frontiers, especially in
Caucasus. Meanwhile,
Peter I of Russia began to occupy the Iranian territories in the
North Caucasus and
Transcaucasia, gains which were confirmed by the
Treaty of Saint Petersburg (1723). Fearing a Russian-controlled Caucasus, the Ottomans decided to capture
Tbilisi to balance the Russian advance. But this operation resulted in a long Ottoman Safavid war. == War ==