He places the city near Nowy Dwór (German: "Neuhaus"), built by Bolko I the Strict of the Silesian Piasts. The city website, however, cites the building of the castle as a separate event in 1290. A part of Nowy Dwór castle, a manor built in the 17th century, was destroyed in the 19th century. Nevertheless, the region became part of Poland after the establishment of the state under the Piast dynasty in the 10th century and during the fragmentation of the realm, it was part of various Polish-ruled duchies, the last of which was the Duchy of Świdnica until 1392, later it was also part of the Bohemian Crown and Hungary.