Eventually restored as a kingdom (albeit in legislative union with Denmark) in 1661, Norway saw its land area decrease in the 17th century with the loss of the provinces Båhuslen, Jemtland, and Herjedalen to Sweden, as the result of a number of disastrous wars with Sweden. In the north, however, its territory was increased by the acquisition of the northern provinces of Troms and Finnmark, at the expense of Sweden and Russia.