Almeida stands on the plateau like a table set for history: "Al-Mêda" was the name given to it by the Arabs. Previously, it had been a Lusitanian, Roman, and then Christian fort, conquered in 1190 and definitively Portuguese in 1297. Around the medieval castle grew the town, still marked by the Puerta do Sol.
After the Restoration, the town transformed into a veritable war machine: the six-pointed star-shaped fortress, with bastions, ravelins, and underground galleries that served as both shelter and prison. It was the scene of decisive battles, devastated by the explosion of 1810 and contested in the liberal wars, always rising from the ruins.