Between 1808 and 1809 he fought in Spain, where he was made the governor of Malaga, and in 1810 was promoted to Brigadier General.
Between 1808 and 1809 he fought in Spain, including at the Battle of Almonacid and Battle of Ocana. He was appointed as the governor of Malaga, and in 1810 was promoted to Brigadier General.