Sweden was given roughly the same area as the former Duchy of Livonia after the 1626–1629 Polish–Swedish War. The area, usually known as Swedish Livonia, became a very important Swedish dominion, with Riga being the second largest Swedish city and Livonia paying for one third of the Swedish war costs. Sweden lost Swedish Livonia, Swedish Estonia and Ingria to the Russian Empire almost 100 years later, by the Capitulation of Estonia and Livonia in 1710 and the Treaty of Nystad in 1721.