<P> As Pettigrew's North Carolina Brigade came on line, they flanked the 19th Indiana and drove the Iron Brigade back . The 26th North Carolina (the largest regiment in the army with 839 men) lost heavily, leaving the first day's fight with around 212 men . By the end of the three - day battle, they had about 152 men standing, the highest casualty percentage for one battle of any regiment, North or South . Slowly the Iron Brigade was pushed out of the woods toward Seminary Ridge . Hill added Maj. Gen. William Dorsey Pender's division to the assault, and the I Corps was driven back through the grounds of the Lutheran Seminary and Gettysburg streets . </P> <P> As the fighting to the west proceeded, two divisions of Ewell's Second Corps, marching west toward Cashtown in accordance with Lee's order for the army to concentrate in that vicinity, turned south on the Carlisle and Harrisburg roads toward Gettysburg, while the Union XI Corps (Maj. Gen. Oliver O. Howard) raced north on the Baltimore Pike and Taneytown Road . By early afternoon, the U.S. line ran in a semicircle west, north, and northeast of Gettysburg . </P> <P> However, the U.S. did not have enough troops; Cutler, whose brigade was deployed north of the Chambersburg Pike, had his right flank in the air . The leftmost division of the XI Corps was unable to deploy in time to strengthen the line, so Doubleday was forced to throw in reserve brigades to salvage his line . </P> <P> Around 2 p.m., the Confederate Second Corps divisions of Maj . Gens . Robert E. Rodes and Jubal Early assaulted and out - flanked the Union I and XI Corps positions north and northwest of town . The Confederate brigades of Col. Edward A. O'Neal and Brig. Gen. Alfred Iverson suffered severe losses assaulting the I Corps division of Brig. Gen. John C. Robinson south of Oak Hill . Early's division profited from a blunder by Brig. Gen. Francis C. Barlow, when he advanced his XI Corps division to Blocher's Knoll (directly north of town and now known as Barlow's Knoll); this represented a salient in the corps line, susceptible to attack from multiple sides, and Early's troops overran Barlow's division, which constituted the right flank of the Union Army's position . Barlow was wounded and captured in the attack . </P>

Where did the battle of gettysburg take place