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 November 20, 1710.
The main event of the conflict was the ill-prepared Prut Campaign of 1711, during which Russian troops under command of Boris Sheremetev attempted to invade Moldavia with the aid of Moldavian ruler Dimitrie Cantemir but were defeated by the Ottoman troops under Grand Vizier Baltacı Mehmet Paşa, in a decisive battle at Stănileşti (started on July 18, 1711).
The conflict was ended on July 21 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.