Battle of Poltava
The campaign led to Sweden gaining control over the Polish–Lithuanian Commonwealth, until the Swedish defeat at Battle of Poltava and the Treaty of Thorn (1709) which restored the Russian-backed Augustus to the Polish throne and forced the remaining Swedes out of the Commonwealth.