In 1310, the castle at the site of a former stronghold, and town were founded under Lübeck law by Duke Wartislaw IV of Pomerania and modelled after Szczecin ( ) which is situated about 150 kilometers to the west.