That same month, Taylor commanded American forces at the Battle of Palo Alto and the nearby Battle of Resaca de la Palma. Though greatly outnumbered, he defeated the Mexican "Army of the North" commanded by General Mariano Arista, and forced the troops back across the Rio Grande. Taylor was later praised for his humane treatment of the wounded Mexican soldiers prior to the prisoner exchange with General Arista, giving them the same care as was given to American wounded. After tending to the wounded, he performed the last rites for the dead of both the American and Mexican soldiers killed during the battle.