On the outbreak of hostilities with Prussia (the War of the Fourth Coalition) he joined the V Army Corps under Marshal Jean Lannes as chief of the general staff. He distinguished himself at the battles of Saalfeld and Jena, and at Friedland he commanded the I Corps in such a manner that Napoleon made him a Marshal of France.