The Mexican government gave Santa Anna control of the army and ordered him to defend the nation by any means necessary. He engaged the French at Veracruz and, as the Mexican resistance retreated after a failed assault, Santa Anna was hit in the leg and hand by cannon fire.