After Monterrey, the 5th and the other regular regiments in Taylor's command were replaced by volunteers. They returned to Texas to join Major General Winfield Scott's expedition to Veracruz. The whole regiment was now together, though two companies were detached during the march to Mexico City and spent their time defending supply trains from guerilla attacks. Still in Worth's division, the 5th captured Perote on 22 April 1847.