The town, known in German as Rastenburg and in Polish as Rastembork, was established in 1329 in the State of the Teutonic Knights and was granted town rights in 1357 by Henning Schindekop.
A vila, coñecida en alemán como Rastenburg e en polaco como Rastembork, foi establecida en 1329 no Estado da Orde Teutónica e lle foron recoñecidos os dereitos de vila en 1357.