Battle of Gettysburg: Confederate General Richard Ewell's Failure on the Heights. As dusk settled over south-central Pennsylvania on the evening of July 1, 1863, 27,000 Union infantrymen and nearly 85 fieldpieces held the heights overlooking this misleadingly peaceful countryside near the tiny hamlet of Gettysburg.