 In 1688 Zaporozhian Cossacks and Tatar forces unsuccessfully tried to destroy the Russian troops in the town's Bohorodytsia Fortress (built for the Russian Tsar) but ended up destroying the unprotected lower town only.Cossacks in 1711 forced the Russians troops out of the town under the Treaty of the Pruth; this time in an alliance with the Tatars and the Ottoman Empire.Two fortresses on territory of the future Ukrainian metropolis, Kodak Fortress and Bohorodytsia Fortress (on territory of Samar), were razed in accordance to the Russian treaty.