 Artillery Regiment and was sent to fight in the Mexican–American War from 1846 to 1848.He served at the Siege of Veracruz and the battles of Contreras, Chapultepec, and Mexico City, eventually earning two brevet promotions, and the regular army rank of first lieutenant.It was in Mexico that Thomas Jackson first met Robert E. Lee.