This castle would have previously been a Lusitanian fortification. However, it was the Romans who made it grow militarily. During the reign of King Dinis, fortification and enlargement work was carried out, and only the wall with the adarve, cubels, five medieval doors and two sturdy square towers have survived to the present day.