On July 2, Pender was posted near the Lutheran Seminary. During the "en echelon" attack that started with James Longstreet's assault on the right, from the Round Tops through the Peach Orchard, Pender's division was to continue in the attack sequence near Cemetery Hill, to the left of Maj. Gen. Richard H. Anderson's attack on Cemetery Ridge. Pender was wounded in the thigh by a shell fragment fired from Cemetery Hill, and turned command over to Brig. Gen. James H. Lane. His division's momentum was broken by the change in command and no effective assault was completed. Pender was evacuated to Staunton, Virginia, where an artery in his leg ruptured on July 18. Surgeons amputated his leg in an attempt to save him, but he died a few hours later.