He took part in the French Revolution of 1789. During the Reign of Terror he was almost executed at the guillotine, but the death of Robespierre saved him this fate. He later took part in the French campaign in Egypt and Syria.