[citation needed] In June 1799 he received a temporary promotion to General de brigade, which was made permanent in October.
He distinguished himself as chief of staff of Soult’s 4th Corps at the Battle of Jena after which he was promoted to general de division.
In the 1813 campaign Compans served with honour at Lützen, Bautzen and Leipzig, where he was wounded by bullets and sabre cuts.
After Napoleon's abdication, Compans served Louis XVIII of France on the War Council.
Having been named a Pair of France by Louis XVIII, in the trial of Marshal Ney he voted for the death penalty.