 In the 15th century, crafts flourished, local cloths were exported to other countries, while 85 of all 86 houses had the right to brew beer.With the County of Kladsko, it turned Protestant by the mid-16th century and was affected by the Counter-Reformation in the Habsburg Monarchy as well as the devastations of the Thirty Years' War, when it was captured by the Austrians in 1621, the Swedes in 1632, and it was struck by epidemics in 1625 and 1633.In the First Silesian War (1740-42), the town was conquered and annexed by King Frederick II of Prussia.