||This article needs additional citations for verification. (November 2010)
The war between Russia and the Ottoman Empire erupted after the Russians had defeated Sweden in the Battle of Poltava. With help from the Austrian and French diplomats, the wounded Charles XII of Sweden escaped from the battlefield to the court of the Ottoman Sultan Ahmed III, whom he persuaded to declare war on Russia on 20 November 1710.
The main event of the conflict was the ill-prepared Pruth Campaign of 1711, during which Russian troops under command of Peter the Great and Boris Sheremetev attempted to invade Moldavia with the aid of Moldavian ruler Dimitrie Cantemir but were surrounded and defeated by the Ottoman troops under Grand Vizier Baltacı Mehmet Pasha, in a decisive battle at Stănileşti (started on 18 July 1711).
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.
Turkish historians have traditionally argued 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 Pomerania which by then was besieged by troops from Saxony, Denmark, Prussia and Russia.