Treaty of Nystad
At the time, most of the Swedish Empire was under foreign military occupation, though Sweden itself was still free. This situation was later formalized, albeit moderated in the subsequent Treaty of Nystad. The close saw not only the end of the Swedish Empire but also of its powerful monarchy and war machine.