Since the late Middle Ages, the town has changed owners many times, it was even the object of armed conflicts. It suffered during the Thirty Years' War, when it was occupied by different armies.[4] It did not have defensive walls, which ironically saved it from serious damage, because there was no need to besiege or storm it.[4] Protestants were oppressed during the Austrian occupation and Catholics were oppressed during the Swedish occupation.[4] Ultimately, Catholicism reigned in the city after the war.[4]
During World War II, Germans imprisoned Polish forced laborers in the town.[4] In the autumn of 1944, both residents and forced laborers were directed by the Germans to fortification works on the Oder river.[4]