he present mill, the residential building and the fragments of the walls next to them once belonged to the royal castle. It was erected on the Warta River in the Gothic style by Casimir the Great in the fourteenth century. The complex on a rectangular plan was surrounded by a wall. It was built up to protect the northern areas of the country from invasions from Brandenburg and the Teutonic Order. During the Swedish Deluge, it was destroyed. In the eighteenth century, it was partly in ruins, then