The conflict was ended on 21 July by the Treaty of the Pruth, to the disappointment of Charles XII. The Treaty stipulated to return Azov to the Ottomans; Taganrog and several Russian fortresses were to be demolished; while the Tsar pledged to stop interfering into the affairs of the Polish-Lithuanian Commonwealth.
Alexander Mikaberidze argues that Baltacı Mehmet Pasha made an important strategic mistake by signing the treaty with relatively easy terms for the Russians. Since Peter himself was commanding the Russian army, and had Baltacı Mehmet Pasha not accepted Peter's peace proposal and pursued to capture him as a prisoner instead, the course of history could have changed. Without Peter, Russia would have hardly become an imperial power, and the future arch-enemy of the Ottoman State in the Balkans, the Black Sea basin and the Caucasus.
Although the news of the victory was first received well in Constantinople, the dissatisfied pro-war party turned general opinion against Baltacı Mehmet Pasha, who was accused of accepting a bribe from Peter the Great. Baltacı Mehmet Pasha was then relieved from his office.
Charles XII and his political pro-war ally, the Crimean khan Devlet II Giray, continued their lobbying to have the Sultan declare another war. On next Spring the pro-war party, which accused the Russians of delaying to meet the terms negotiated in the peace treaty, came close to achieving their goal. War was avoided by diplomatic means and a second treaty was signed on 17 April 1712. A year after this new settlement, the war party succeeded, this time accusing the Russians of delaying in their retreat from Poland. Ahmed III declared another war on 30 April 1713. However, there were no significant hostilities and another peace treaty was negotiated very soon. Finally the Sultan became annoyed by the pro-war party and decided to help the Swedish king to return to his homeland. Ahmed III also deposed Devlet II Giray from the throne of the Crimean Khanate and sent him into exile to the Ottoman island of Rodos because he didn't show enough respect to Charles XII during the campaigns against Russia (Devlet II Giray considered Charles XII a prisoner and ignored his commands.) Charles XII left the Ottoman Empire for Stralsund in Swedish Pomeraniawhich by then was besieged by troops from Saxony, Denmark, Prussia and Russia.