During the Mexican–American War, French was aide-de-camp to General Franklin Pierce, and also on the staff of General Robert Patterson. He was engaged in the siege of Vera Cruz, and received two brevet promotions for bravery: to captain for Cerro Gordo and to major for Contreras and Churubusco.