During the campaigns against the Third and Fourth Coalitions from 1805 to 1807, he served as Murat's aide-de-camp. At the crossing of the Danube, and in the Battle of Wertingen he especially distinguished himself. He was appointed to the rank of Colonel two days before the Battle of Elchingen, and was made a Brigadier General in May 1807.