 During the Napoleonic Wars, Emperor Napoleon placed Rampon in several positions of trust.He became a Count of the Empire in 1808 and commanded the Camp of Boulogne in 1809.In 1814 he held the fortress of Gorinchem (Gorkum) in the present-day Netherlands until 7 February, when he was compelled to surrender to the Prussians.