Great Northern War
When all that was happening Russia had been invading Sweden. Russia conquered  Estonia, Livonia and Ingria. By the time the remaining soldiers had come back from Norway, Russia had completely conquered Finland. Sweden still didn't want peace though, because they would have to give lots of land to Russia. Russia used a newly made fleet of ships to attack and raid the Swedish Coast and Sweden would still not give up.  Eventually the Russian and Swedish ships came together in the Battle of Grengam. Both sides thought they had won the battle so no treaty was signed until the Russians continued using their boats to damage the Swedish coast. Finally Sweden gave up in 1721. Sweden had made peace with Denmark in 1720 and in 1721 Sweden signed the treaty of Nystad.