Ransom fell at the head of the regiment on September 13, 1847, shot through the head while storming the works at Chapultepec on the outskirts of Mexico City. He was succeeded by Jones M. Withers as commander of the regiment.