The year 1422 was of particular importance, because in that year, the town was granted beer-brewing privileges. The walls surrounding Bunzlau, now more than a century old, in 1429 failed to prevent a Hussite army from sacking the town. Further tribulations transpired in 1462 when the Bóbr river flooded the lower-lying sections of the town. From 1469 to 1490 it was under the rule of Hungary, before falling back to Bohemia, then ruled by the Jagiellonian dynasty. In 1479, the old defenses were replaced by a new double ring of walls.