 He returned to command the 1st Brigade, 1st Division in June during the Gettysburg Campaign.During the Battle of Gettysburg, Graham's brigade defended the Union position along the Emmitsburg Road, particularly the area of the Sherfy peach orchard.He was wounded in the hip and shoulders on July 2 and taken prisoner by the Confederates.