 The destruction of the castle and walls continued to 1905, when the jailhouse (installed in the castle) was demolished, while the keep tower was spared.On 23 June 1910, a decree classified the keep and some sections of the medieval wall as a National Monument.The "Direcção Geral dos Edifícios e Monumentos Nacionais" (DGMEN) began the first efforts to recuperate the Castle's remains in 1942-1943, with remodelling of the keep tower, roofing the space and coverage, assessment of pavements, replacement of doors and frames, the clearing of space around the courtyard, including the demolition of existing local structures, and replacing cornerstones that were damaged.