Fighting in the invasion of the Dutch Republic under general Pichegru in 1795, he moved to the Batavian Republic's army as a lieutenant-general. In 1796 he commanding the troops protecting the provinces of Groningen, Friesland and Drenthe, before being made military governor of the Hague. During the Anglo-Russian invasion of Holland he brought up two-thirds of his 2nd Batavian division in forced marches from Friesland and he arrived on 8 September to take on a position in the center of the Franco-Batavian front, around Alkmaar, in time for the Battle of Krabbendam. He was then reinforced with the 7th Half-brigade of Daendels' division. He was wounded at the battle of Bergen (1799) and was thus unable to participate in the Battle of Alkmaar. In 1805 he commanded the corps of Batavian troops placed under the command of maréchal Mortier.