During the Seven Days Battles, Pender was an aggressive brigade commander. He was wounded in the arm at the Battle of Glendale, but recovered quickly enough to rejoin his brigade and fight at Cedar Mountain, Second Manassas (where he received a minor head wound from an exploding shell), Harpers Ferry, and Battle of Sharpsburg. At Sharpsburg, Pender arrived in the nick of time with A.P. Hill after a 17-mile march to save the Army of Northern Virginia from serious defeat on its right flank.