The defensive walls are the remains of the medieval city fortifications. Originally it was a wood and earth fortification with a palisade. In the 15th century, this fortification was replaced with a brick and stone wall 2 cubits wide and 12 cubits high. The walls were reinforced with watchtowers. There were four gates to the city: the western one called Głogowska, the eastern one called Poland, and two smaller ones: southern and northern. On the outer side of the walls, there was an additional earth rampart and a moat with bridges. At night, the bridges were raised, and during the day, the crossing was guarded by the townspeople who were obligated to guard duty and properly armed. After 1770, the partial liquidation of the defensive fortifications began. The moat was filled in and the earth embankment was leveled. In their place, gardens leased to the townspeople were created. In 1818 the tower at the Polish gate was pulled down, in 1828 the gate itself, and in 1851 the Głogów gate. The city walls were also gradually dismantled. In 1962, attempts were made to save the surviving fragments and the missing sections were reconstructed. Another conservation took place in the 90s. The current ramparts are an excellent history lesson for students about the Medieval Mountain. They continue to run in the place where they were originally erected, along Staromiejska Street.