Ливонская война
Marienburg was captured by the troops of Ivan IV of Russia in 1560 during the Livonian War. It was incorporated into the Polish–Lithuanian Commonwealth in 1582. The town became part of the Swedish Empire in 1629.