He entered the French service in 1793. He took part in the operations in Corsica in the following year, and received a wound at the siege of San Fiorenzo. After this he left the island and was appointed a field officer in the French Army of Italy, with which he served from 1795 to 1799. He served as a general officer in the campaign of Marengo, in the Naples campaign of 1805-1806, and in the Peninsular War from 1807 to 1809. He was created a baron by Napoleon.