 The settlement was mentioned as "Wustendorf" in the "Liber fundationis episcopatus Vratislaviensis" from around 1300 as a village owned by the bishopric.It was probably founded in the late 13th century during the reign of Duke Bolko I the Strict of the Piast dynasty, , named "Neu-Gerhardisdorf“ as a German settlement.After devastations of the town in the wake of the Hussite Wars, the town was resettled by miners from Saxony.