The fortification was badly damaged by the earthquake in 1755 but never lost its strategic importance. In the 19th century it was garrisoned at the time of the Peninsular War, during the first French invasion led by General Junot (1807-08). Abandoned by troops in 1822, it was again used during the Liberal Wars (1828-34), but fell into disrepair thereafter. In 1895 a lighthouse was installed inside the fort.