<P> The Great Northern War (1700--1721) was a conflict in which a coalition led by the Tsardom of Russia successfully contested the supremacy of the Swedish Empire in Central, Northern, and Eastern Europe . The initial leaders of the anti-Swedish alliance were Peter I of Russia, Frederick IV of Denmark--Norway and Augustus II the Strong of Saxony--Poland--Lithuania . Frederick IV and Augustus II were defeated by Sweden, under Charles XII, and forced out of the alliance in 1700 and 1706 respectively, but rejoined it in 1709 after the defeat of Charles XII at the Battle of Poltava . George I of Great Britain and of Brunswick - Lüneburg (Hanover) joined the coalition in 1714 for Hanover and in 1717 for Britain, and Frederick William I of Brandenburg - Prussia joined it in 1715 . </P> <P> Charles XII led the Swedish army . Swedish allies included Holstein - Gottorp, several Polish magnates under Stanisław I Leszczyński (1704--1710) and Cossacks under the Ukrainian Hetman Ivan Mazepa (1708--1710). The Ottoman Empire temporarily hosted Charles XII of Sweden and intervened against Peter I . </P> <P> The war began when an alliance of Denmark--Norway, Saxony, Poland and Russia, sensing an opportunity as Sweden was ruled by the young Charles XII, declared war on the Swedish Empire and launched a threefold attack on Swedish Holstein - Gottorp, Swedish Livonia, and Swedish Ingria . Sweden parried the Danish and Russian attacks at Travendal (August 1700) and Narva (November 1700) respectively, and in a counter-offensive pushed Augustus II's forces through the Polish--Lithuanian Commonwealth to Saxony, dethroning Augustus on the way (September 1706) and forcing him to acknowledge defeat in the Treaty of Altranstädt (October 1706). The treaty also secured the extradition and execution of Johann Reinhold Patkul, architect of the alliance seven years earlier . Meanwhile the forces of Peter I had recovered from defeat at Narva and gained ground in Sweden's Baltic provinces, where they cemented Russian access to the Baltic Sea by founding Saint Petersburg in 1703 . Charles XII moved from Saxony into Russia to confront Peter, but the campaign ended in 1709 with the destruction of the main Swedish army at the decisive Battle of Poltava (in present - day Ukraine) and Charles' exile in the Ottoman town of Bender . The Ottoman Empire defeated the Russian - Moldavian army in the Pruth River Campaign, but that peace treaty was in the end without great consequence to Russia's position . </P> <P> After Poltava, the anti-Swedish coalition revived and subsequently Hanover and Prussia joined it . The remaining Swedish forces in plague - stricken areas south and east of the Baltic Sea were evicted, with the last city, Riga, falling in 1710 . The coalition members partitioned most of the Swedish dominions among themselves, destroying the Swedish dominium maris baltici . Sweden proper was invaded from the west by Denmark--Norway and from the east by Russia, which had occupied Finland by 1714 . Sweden defeated the Danish invaders at the Battle of Helsingborg (1710). Charles XII opened up a Norwegian front but was killed in Fredriksten in 1718 . </P>

Who fought a war against sweden to expand russia's size
find me the text answering this question