 He was freed on 19 July 1797 and rejoined his regiment, serving with the armies of the Rhine, Helvetia and the Danube between 1797 and 1801.He rejoined the army of Hanover in 1803 and was made a knight of the Légion d’honneur on 5 November 1804.He was put in command of a battalion of the 57th Line Infantry Regiment and took part in the Austrian, Prussian and Polish campaigns between 1805 and 1807.