 Its numerous railroads made the city a lifeline for Richmond, the Confederate capital.After his defeat at the Battle of Cold Harbor, Grant remained east of Richmond and moved south to Petersburg.Grant intended to cut the rail lines into Petersburg, stopping Richmond's supplies.