City gates and walls: As the town grew, the first walls were built in the 11th century, replaced in the 14th century (specifically, around 1303) by others that were 2 m thick and 16 m high, of which there are still standing remains scattered in different places, as well as three towers in the Vall Calent area, where it can be seen that large windows and roofs have been opened, the result of an integration of the wall and towers as part of residential buildings, which was carried out mainly throughout the 20th century. To access the walled enclosure there were gates, which were closed at dusk with wooden doors and opened at dawn. Only three remain: the Pont gate, the Llobera gate and the Castell gate. The Portal del Pont, completed in 1805, became the main entrance to the city after the twelve-arched stone bridge was built at the end of the 18th century. In the 17th century, during the plague, the current Portal de Llobera was opened so that only Solsona natives could enter, as a protective measure. A chapel was built over the entrance in the 18th century, which still exists, and is dedicated to Santa Anna. And the Portal del Castell got its name thanks to the fact that the first castle in Solsona was next to the portal, today a nunnery and the Arrels I school. The lords solemnly made their first entrance through this portal, but before that they had to swear that they would keep their privileges and customs. The main entrance was through this access until the 18th century.