By the 18th century the castle had lost its defensive value. The earthquake of 1755 destroyed the donjon tower ("Clock Tower") and one of the gates. To rebuild the tower in 1760 the stone from the third gate of the castle was used. In the same century after the death of José (1750-1777) the ruling family de Aveiro became extinct.