Beginning in the 13th century, royal and ducal castles were being modernized, expanding functionality of existing buildings (
Wawel 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 File:Bobolice, Zamek (II).JPG|
Bobolice Castle File:20140619 Zamek Ogrodzieniec 3703.jpg|
Ogrodzieniec Castle (partially rebuilt) File:Chęciny - zamek...jpg|Castle in
Chęciny File:20150411 Zamek w Będzinie 5554.jpg|
Będzin Castle File:Zamek książąt mazowieckich w Czersku 1.jpg|
Masovian Dukes Castle in Czersk File:Zamek w Ciechanowie.jpg|
Masovian Dukes Castle in Ciechanów File:Zamek Królewski w Łęczycy.jpg|
Royal Castle in
Łęczyca File:646547 Lidzbark Warmiński zamek biskupi 02.JPG|
Castle of Warmian Bishops in Lidzbark Warmiński File:Gniew zamek z rogu.JPG|
Teutonic Castle in Gniew File:Zamek w Nidzicy.jpg|
Teutonic Castle in Nidzica File:Zespół Zamku Krzyżackiego MALBORK 01.jpg|Teutonic
Ordensburg in
Malbork File:KP, Olsztyn, zamek2.JPG|
Castle of Warmian Bishops in Olsztyn File:Zamek radzyn 3.jpg|Teutonic Castle in
Radzyń Chełmiński File:Wawel Kurza Stopka tower.PNG|Medieval parts of
Wawel Castle in Kraków == Town halls ==