He was made Captain General of Catalonia in 1802 and Chief of the Engineering Corps in 1805.
Posteriormente foi nomeado Capitán Xeneral de Cataluña en 1802 e Xefe do Corpo de Enxeñeiros en 1805.