Herzogtum Liegnitz
During the ongoing fragmentation of Poland into smaller duchies, in 1248 the town was attached to the newly established Duchy of Legnica and in 1290 was granted with a privilege to trade salt, one of the most expensive and valuable minerals in the Middle Ages. In 1329, under the rule of Duke Bolesław III the Generous, the whole Duchy of Legnica became a fief of the Kingdom of Bohemia under King John the Blind, yet it retained its local self-government. During the 15th century Hussite Wars the town was captured by the Hussite forces in 1427, 1428 and 1431. It was severely pillaged, but it quickly recovered and the local city council decided to build city walls in order to spare the city such troubles in the future. Much of the mediaeval fortifications is preserved until today.