He participated in the campaign of 1807, commanding the 1st Infantry Regiment in Poniatowski's Division. Appointed brigadier general, became a commanding officer of the fort in Gdańsk, and a little bit later became a commanding officer of the Modlin Fortress, which was still being built. In 1808 he was a commander of the brigade in of 3 Divisions. From 1809-1810 he commanded the Danzig garrison under Jean Rapp.