During the context of the Peninsular War, the fortification in Óbidos fired the first artillery rounds in the Battle of Roliça (1808) that resulted in the first defeat of Napoleonic forces. In 1842, the Albarrã tower was transformed into a clocktower. Construction on an exterior staircase access to the D. Fernando Tower occurred in 1869.