Ahmed III cultivated good relations with France, doubtless in view of Russia's menacing attitude. He afforded refuge in Ottoman territory to Charles XII of Sweden (1682–1718) after the Swedish defeat at the hands of Peter I of Russia (1672–1725) in the Battle of Poltava of 1709. In 1710 Charles XII convinced Sultan Ahmed III to declare war against Russia, and the Ottoman forces under Baltacı Mehmet Pasha won a major victory at the Battle of Prut. In the aftermath, Russia returned Azov back to the Ottomans, agreed to demolish the fortress of Taganrog and others in the area, and to stop interfering in the affairs of the Polish–Lithuanian Commonwealth.