In the second half of the 13th century, Radom was granted a Środa Śląska town charter by Prince Bolesław V the Chaste, although no documents exist to confirm the exact date of this event. The town prospered in the 14th century, when in 1350 King Kazimierz Wielki established the so-called "New Town", with a royal castle, a defensive wall, and a town hall. There was also a market square and a grid plan of the streets, patterned after Gothic German towns. The area of "New Town" was 9 hectares, and the length of the defensive wall was 1,100 meters. Radom had three gates, named after main merchant roads: "Iłża Gate", "Piotrków Trybunalski Gate", and "Lublin Gate". The defensive wall was further protected by 25 fortified towers. "New Town" had the Church of John the Baptist, and the Royal Castle was built between the church and the moat.