During the period 1808-1814 (War of Independence) the castle endured three attacks by Napoleón, but finally in 1810 was conquered by the troops of Marshal Suchet, and belonged until 1814 to the French government.
Durante o período 1808-1814 (Guerra da Independencia) o castelo sufriu tres ataques por parte de Napoleón, pero finalmente en 1810 foi conquistado polas tropas do Mariscal Suchet e pertencía ata o goberno francés en 1814.