While the 1755 earthquake didn't do nearly the same amount of damage to the Moorish Castle as it did to the nearby monastery, it did degrade the stability of the foundation, and it slowly deteriorated into ruins. Ferdinand II, when he acquired this castle as part of the Pena Palace estate, ordered the rebuilding and refortification of the castle.