Duchy of Legnica
In 1317, the town passed from the Duchy of Głogów to the Duchy of Legnica, and remained ruled by the Piast dynasty until 1675, although since 1329 under the suzerainty of the Crown of Bohemia (Czechia), which was part of the Holy Roman Empire. On 30 June 1432 the Hussites invaded the town, devastating and burning the monastery. The area was heavily affected by the Thirty Years' War. In 1632 it was plundered by the Saxons, and in 1639 was occupied by Swedish forces. Following the extinction of the Piast dynasty and the dissolution of the Duchy of Legnica in 1675, the town was incorporated into the Bohemian Crown, then ruled by the House of Habsburg. In the second half of the 17th century the famous painter Michael Willmann resided in the local abbey.