The Great Northern War was the war fought between a coalition of Denmark–Norway, Russia and Saxony-Poland (from 1715 also Prussia and Hanover) on one side and Sweden on the other side from 1700 to 1721. It started by a coordinated attack on Sweden by the coalition in 1700, and ended 1721 with the conclusion of the Treaty of Nystad, and the . As a result of the war, Russia supplanted Sweden as the dominant power on the shores of the Baltic, becoming a major player in European politics.
Between 1561 and 1658, Sweden fought a series of wars in the Baltic, capturing an empire. During this period Sweden had occupied the Danish provinces of Skåne, Blekinge and Halland and the Norwegian provinces of Jämtland, Härjedalen, Trøndelag and Bohuslän. For Denmark, even more than the loss of territory, the continuous Swedish interference in Holstein (supporting claims for lands in Danish held Schleswig) was a major bone of contention.
In the late 1690s Russia, who had also lost territory to Sweden, allied with Denmark–Norway, together with the duke of Saxony, who expected a reconquest of territory lost by his kingdom, Poland, to strengthen his domestic position.