On 5 September 1327 by the Treaty of Ueckermünde the Pomeranian dukes and the Brandenburgian margrave agreed on a formal peace.
In 1540 the building of the four wings of the castle was started by Pomeranian Duke Philipp I.