On June 22, 1864, Union forces attempt to capture a railroad that had been supplying Petersburg, Virginia, from the south, and extend their lines to the Appomattox River. In the Battle of Jerusalem Plank Road, the Confederates thwarted the attempt, and the two sides settled into trenches for a nine-month siege.
The struggle for Petersburg began on June 15. Union General Ulysses S. Grant had spent six weeks fighting his way around Richmond, Virginia. His adversary, General Robert E. Lee, commander of the Army of Northern Virginia, had inflicted tremendous casualties on the Army of the Potomac. Most recently, at Cold Harbor, Grant ordered a disastrous attack on Rebel entrenchments and lost 7,000 men. Afterward, Grant swung south to capture the rail center of Petersburg, 23 miles from Richmond.