Herzogtum Schweidnitz-Jauer
The settlement arose in the 13th century where the medieval trade route from Jelenia Góra to Zittau crossed the border with Upper Lusatia. As a result of the fragmentation of Poland, in 1319 it became part the small Piast-ruled Duchy of Jawor. In the course of the German "Ostsiedlung", it received town privileges by the Duke Henry I of Jawor in 1337 (according to other sources in 1329). Upon the death of his successor Duke Bolko II the Small in 1368, it passed to the Bohemian Crown and was enfeoffed to the noble House of Schaffgotsch in 1425. In 1431 it was successfully defended against the Hussites. An annual fair took place in the town from 1521. During the Thirty Years' War, troops from various countries plundered the town as many as 31 times.