First of all, the wall was a fortification that protected the territory and its inhabitants from enemy attacks. However, the wall was not just a defensive structure; it also held significant symbolic and political meaning in medieval society, as it marked the boundaries of the city and separated its residents from the outside world.
This physical barrier symbolised the existing social hierarchy of the time, as those inside the wall enjoyed protection and privileges, while those outside were considered inferior and exposed to dangers and threats.
The walls also served as a form of health protection. When plagues occurred, the gates would be closed, and strict control was enforced over who could enter to prevent contagion. In some cases, the opposite would happen: when the city was infected and full of the sick, the ill were not allowed to leave.