In the Treaty of Nystad Sweden had to give land to other countries. Sweden had to give Estonia, Livonia and Ingria to Russia but could keep Finland. Sweden also signed other treaties. These were the treaty of Stockholm where Sweden gave Prussia Swedish Pomerania and the treaty of Fredericksborg where Sweden had to pay Denmark-Norway money for the damage the war had done.