 Still in Worth's division, the 5th captured Perote on 22 April 1847.Reaching the outskirts of Mexico City, the 5th was part of the flanking movement that led to the victory at Contreras on 19 August.The following day, they took the right flank in the assault on the bridgehead at Churubusco.