He took part in the Siege of Veracruz and engaged in the battles of Cerro Gordo, Contreras and Churubusco. In Mexico City Scott ordered Worth to seize the Mexican works at the Molino del Rey. Worth and Scott's friendship came to a head when Scott refused to allow Worth to modify the attack and the battle caused the 1st Division severe casualties, much to Worth's dismay. Worth later renamed his son Winfield Scott to William. He next led his division against the San Cosme Gate at Mexico City. When U.S. forces entered Mexico City, Worth personally climbed to the roof of the National Palace and took down the Mexican flag replacing it with the Stars and Stripes.