 In October 1799, he was promoted to first lieutenant.During the War of the Oranges in 1801, he took part in a Spanish expedition against Portugal.He also participated in the Peninsular War, during which he was taken prisoner in October 1811.