In 1847, Smith was appointed a Second Lieutenant in Company K of the U.S. Regiment of Voltigeurs during the Mexican-American War, and fought at Veracruz.