he received two brevets for meritorious service during the mexican–american war, to captain and major for the actions at contreras, churubusco, and chapultepec. in mexico while serving under general winfield scott in the army of occupation, he received his nickname, "fighting dick", which would carry over to the civil war.