During the Ottoman–Hotaki War (1722–1727) the Ottomans invaded Iran in league with Russia, gaining large parts of north-west Iran via the Treaty of Hamedan.[1] Another war followed in the 1740s which was ended by the Treaty of Kerden in 1746, which restored Iran's western provinces and re-affirmed the 1639 Zuhab border.[10][9]