The Confederates were able to defend Richmond and the important railroad and supply center of Petersburg, Virginia, 23 miles south of Richmond for over 9 months against a larger force by adopting a defensive strategy and skilfully using trenches and field fortifications.