 From the 18th century it was part of the Kingdom of Prussia and from 1871 also Germany, until 1945.During World War II, the Oflag II-C German POW camp was located nearby (today within the city limits).The camp housed Polish officers.