On 1 November 1755, the castle was damaged by the Lisbon earthquake, resulting in the "...loss of its cathedral, tower, castle and walls...", as identified by Moreira de Mendonça (1758). Sometime during the 18th century, the dungeons were reconstructed, following the earthquake, and the ceilings repainted.