ポルトガル王政復古戦争
Following the Portuguese Restoration War, in 1640, the castle received new tactical defenses, that included a new walled bastion, that allowed the city-fort to be integrated into the system of defences that connected Elvas, Juromenha, Olivença and Mourão.