 Posted to the Army of the Eastern Pyrenees, he was appointed chef de brigade (colonel) and fought in the War of the Pyrenees.Taken prisoner by the Spanish near Port-Vendres in December 1793, he remained incarcerated until October 1795.In November 1795, Rampon was named commander of what soon became the 32nd Demi-Brigade.