The settlement suffered during the Hussite Wars (1425–1430) and Thirty Years' War (1618–1648). During the Great Northern War it was plundered by Swedish troops. Many inhabitants died in the War of the Polish Succession, fighting on the side of Augustus III of Poland. During the Seven Years' War, the occupying Austrian and Prussian armies imposed contributions on the inhabitants, confiscated food and even pillaged the village. In 1813, during the Napoleonic Wars and Polish national liberation fights, joint Polish-French forces commanded by Prince Józef Poniatowski were stationed in the village and later also Russian troops marched through the village. As Saxony had sided with the French Empire during the Napoleonic Wars, it had to cede the northeastern part of Upper Lusatia to Prussia according to the Final Act of the 1815 Vienna Congress. After the new border had been drawn, the village was the only possession east of the Neisse River that remained within Saxony. From 1871 to 1945 it was part of the German Empire. Spared from damage during World War II, with the implementation of the Oder-Neisse line according to the post-war Potsdam Agreement, it passed to Poland and was granted a city charter. It is therefore the only municipality in Poland which until 1945 had not been part of Prussia (but of the Free State of Saxony).