He returned to France under the Consulate, was appointed Brigadier General in 1809 and fought in the Spanish War, and was appointed governor of Würzburg (in the Duchy of Würzburg) under the First Empire.