Castle, Legnica Castle). Construction of new castle began. As this initially required consent of the ruler, the oldest castles were state-built. Initially, in the 13th century, the characteristic elements of the locks were placed in a role within the wood-earth castles, so the first castles were irregular in shape (e.g., in Opole). After the mid-13th century abandoned the construction palatiów to be connected rather with the earlier epoch. Regular shape of castles spread throughout the Polish Kingdom in the reign of Casimir the Great, and built them into this shape, even in areas of previous castles (Rawa, Łęczyca, Koło). Castles and monasteries built by Joannites (Stare Drawsko, Łagów, Swobnica, Pęzino) and the Teutonic Order, in the state created by them in Prussia (Malbork, Radzyń Chełmiński, Niedzica) and bishops (in Lipowiec). The castles were built or final defense towers (known as stołp) and residential towers (donżon). The best preserved Gothic castles are: in Lesser Poland: Chęciny, Odrzykoń, Czorsztyn, Niedzica, Kazimierz Dolny, Bobolice, Będzin, Lipowiec, Ogrodzieniec and others on Trail of the Eagles' Nests in northern Poland: built by the Teutonic Order in Malbork, Nidzica, Golub, Radzyń Chełmiński, Gniew; or on their strongholds modeled (usually built on the estates of bishops) in Kwidzyn, Lidzbark Warmiński, Olsztyn, Reszel. in Mazovia: Castle in Ciechanów, Czersk, Liw. in Greater Poland: Castle in the Koło, Szamotuły, Gołańcz, Łęczyca. in Lower Silesia: Siedlęcin Tower, Bolków, Chojnik, Żmigród, Świny Town halls A town hall called Ratusz was a symbol of a city's power in the Middle Ages. Around the town hall were other buildings associated with the function of the urban organism: hall, municipal building, weight, merchant stalls and pillory. Examples of unconverted later Gothic town halls include the Wrocław Town Hall, the Old Town Hall in Toruń and town halls in Chojna, Gdańsk and Szczecin. Only the Gothic tower of the Ratusz town hall in Kraków has survived. The gothic town hall on the Old Town Market Square in Warsaw was demolished in 1820. Houses Existing settlements received in the 13th and 14th centuries tracking new laws (usually based on Magdeburg Law). Urban area is usually divided grid of streets perpendicular to the plot by creating a chessboard layout. Residential buildings, in the upper reaches is still built of wood or timber-framed art. In order to prevent the transmission of fire during the fire, often the wall was increased at the border of two adjacent parcels and