King Charles XII visited Ystad in 1699 and once again before the start of the Great Nordic War in 1700. He left Stralsund (in present-day Germany) in 1715 and returned to Ystad for the third time, from where he ruled Sweden for a few months.