In 1808, during the Spanish War of Independence he was taken captive by the French and imprisoned in El Escorial, from where he eventually escaped.
Tahun 1808, saat Perang Kemerdekaan Spanyol, ia tertangkap oleh pasukan Prancis dan dipenjarakan di Escorial, yang kemudian berhasil meloloskan diri.