Charles XI of Sweden consolidated the empire. But a decline began with his son, Charles XII. After initial Swedish victories, Charles secured the empire for some time in the Peace of Travendal (1700) and the Treaty of Altranstädt (1706), before the disaster that followed the king's war in Russia.
The war began as a coordinated attack on Sweden, ruled by the young Charles XII, by the coalition in 1700 and ended in 1721 with the Treaty of Nystad and the Stockholm treaties. Despite spectacular early Swedish victories, the ultimate result of the war was the end of the Swedish Empire .