He served in the Mexican–American War with General Zachary Taylor at the Battle of Monterrey, and under General Winfield Scott at the Siege of Veracruz. After the war, he was stationed in Kansas, helping build forts along the Platte River.