 The Ottoman Empire became involved in the war nine years later, when Charles XII of Sweden was defeated by Peter the Great in the Battle of Poltava and subsequently encamped the remnants of his army in Ottoman Bender.This led to another confrontation between the sultan and the tsar, culminating in an Ottoman declaration of war and the unsuccessful Russian Pruth Campaign.As a consequence, the treaty of Constantinople was superseded by the Treaty of the Pruth (1711), by which Azov was returned to the sultan and subsequently razed, and the Treaty of Adrianople (1713), which restored peace between the Russian and Ottoman empires scheduled to last twenty-five years.