He took part in the Wars of the Third and Fourth Coalitions. In 1807 he became aide-de-camp to general Defrance and afterwards to Marshal Marmont.