 Adams was brevetted for gallantry during the Mexican–American War at the Battle of Santa Cruz de Rosales.After the war, Adams served on the western frontier, primarily in California.He was subsequently promoted to first lieutenant and captain.