Grant served as regimental quartermaster, but yearned for a combat role; when finally allowed, he led a charge at the Battle of Resaca de la Palma. He demonstrated his equestrian ability at the Battle of Monterrey by volunteering to carry a dispatch past snipers, where he hung off the side of his horse, keeping the animal between him and the enemy. Before leaving the city he assured some wounded Americans he would send for help. Polk, wary of Taylor's growing popularity, divided his forces, sending some troops (including Grant's unit) to form a new army under Major General Winfield Scott. Traveling by sea, Scott's army landed at Veracruz and advanced toward Mexico City. The army met the Mexican forces at the battles of Molino del Rey and Chapultepec outside Mexico City. For his bravery at Molino del Rey, Grant was brevetted first lieutenant on September 30. At San Cosmé, Grant directed his men to drag a disassembled howitzer into a church steeple, then reassembled it and bombarded nearby Mexican troops. His bravery and initiative earned him his brevet promotion to captain. On September 14, 1847, Scott's army marched into the city; Mexico ceded the vast territory, including California, to the U.S. on February 2, 1848.