Massive fortified structure built in the 14th century by Duke Siemowit III, it was reconstructed in the 16th century.