Liberal Wars
During the Liberal Wars the walls were repaired by the population, under "Remexido", who ignored the foundations of the original castle.