Town with origins dating back to the turn of the 13th century, probably in connection with a former castle or settlement