In light of preparations for the war against the Swedish Empire, Russian Tsar Peter the Great signed the Treaty of Karlowitz with the Ottoman Empire in 1699.[6] The subsequent Treaty of Constantinople in 1700, ceded Azov, the Taganrog fortress, Pavlovsk and Mius to Russia and established a Russian ambassador in Constantinople, and secured the return of all prisoners of war.[7] The Tsar also affirmed that his subordinates, the Cossacks, would not attack the Ottomans, while the Sultan affirmed his subordinates, the Crimean Tatars, would not attack the Russians.