He fought under General Ricardos in the Campaign of Roussillon against the French Republic. When the Duke of Wellington took command of the English and Spanish troops, he was attached to Wellington's staff together with General Alava. He was mentioned several times in the Duke's despatches in his campaign in Spain against Napoleon: