Gen. Ulysses S. Grant assaulted Petersburg unsuccessfully and then constructed trench lines that eventually extended over 30 miles from the eastern outskirts of Richmond, Virginia, to around the eastern and southern outskirts of Petersburg.