In the 12th century, a wooden castle-fortress appeared, which stood until the 18th century and protected the city from enemies. In the middle of the 19th century, new stone buildings were erected on the site of the old, already rather rotten buildings, and the castle itself began to serve as a prison. After the First and Second World Wars, the castle buildings were badly damaged, abandoned and began to crumble. Unfortunately, by now only small ruins with bars in the window openings, part of the brick fence and old ditches have survived.