Alexander was brevetted Major at the Battle of Cerro Gordo on April 18, 1847, and Lieutenant Colonel at the Battles of Contreras and Churubusco on August 20 during the Mexican-American War.