The exact number of gates in the medieval wall is unknown, but at least three can be mentioned, corresponding to the main roads that led out of the city to the cultivated fields.
There was no gate on the western side, because there was no perceived danger from the mountains. Of the three, the most important was the Jàpacu gate, probably named after the rather common name of the people who lived in the neighbourhood.
It served as an exit to reach the entire eastern part of the territory, all the way to the sea, where the greatest danger could come from: the Turks, brigands who sometimes even kidnapped young people.
The gate is neither wide nor high, perhaps to prevent the enemy from easily storming in. It stood next to the bastion, a formidable defensive structure from which anything could be launched at anyone who tried to enter the city as an enemy.
The gate, the only one remaining, is in poor structural condition and is in danger of collapsing unless urgent and appropriate action is taken.