In the Mexican–American War, he participated in the Siege of Vera Cruz, March 9–29, 1847, the Battle of Cerro Gordo, April 17–18, 1847, the Skirmish of Amazoque, May 14, 1847, and Battle of Molino del Rey on September 8, 1847. He was severely wounded at Molino del Rey while assaulting enemy fortifications, for which he received a brevet promotion to major.