Lee was forced to withdraw to Petersburg. It was realistically his last stand, and his only chance to block Grants advance on Richmond. It was however, doomed to failure from the start. Grant enjoyed unlimited supplies, unlimited manpower. His engineers built rail lines almost to the front line trenches to keep his troops supplies, while the Confederates had little and no chance of resupply. The inevitiable occurred on April 2nd 1865 when the Union breached confederate lines and the confederates were forced to withdraw from Petersburg and Richmond, thus effectively ending the war
.
Once Lee's troops had arrived at Petersburg, both armies dug in for a long-term siege. This was a battle that Lee knew he could not win. Nonetheless, this was a battle he had no choice, but in which to participate. If Petersburg fell, Richmond was doomed. The Union forces had all the advantages in the siege. Its forces were well supplied both in armaments, food and clothing. The Union Engineers ran a railroad right behind the Union trenches. Regular passenger and freight trains supplied the Union troops regularly. At the same time Confederate troops were going hungry and were suffering a shortage in ammunition. Lee wrote, at one point: “If some change is not made and the commissary department reorganized I apprehend dire results. The physical strength of the men, if their courage survives must fail under this treatment.”
Union and Confederate forces shelled each other daily. Each side suffered casualties. However, the Union casualties were replaceable, while the Confederates had reached the absolute bottom of the manpower pool.
There were a number of attempts to break the stalemate between the two sides. The most well known was an attempt to break through the lines by building a tunnel under the Confederate fortifications, and setting off a very large explosive charge. A division of Black troops had been trained to exploit the explosion. Though at the last moment, they were replaced by a White division, who were not prepared for the task. The explosion created a great hole in the Confederate lines. The uncoordinated attack that followed achieved nothing but 4,000 Union casualties. As Grant to wrote Halleck: “It was the saddest affair I have witnessed in the war. Such opportunity for carrying fortifications I have never seen and do not expect again to have.”
While the siege was taking place the Confederates suffered a severe reversal of fortune in the Shenandoah Valley. At the end of July, Jubal Early led Confederate troops out, down the Valley. Early had crossed the Potomac. On July 11th, he reached the outskirts of Washington. This area was defended initially by clerks and other non-combatants. Elements of the Sixth Army Corps arrived in Washington, just in a nick of time. Early decided to retreat. That was the high point. Then Grant appointed Phil Sheridan to command Union forces in the Valley. Sheridan went ahead and recaptured the valley. He decisively defeated Early's forces in three battles, including the third Battle of Winchester. Early's forces ceased being an effective unit. As Sheridan pulled out of the valley, he stripped it clean of all food, farm animals and anything else that might be helpful to the Confederacy.
Lee's army was steadily dwindling. Every day more and more Confederate soldiers deserted. By the end of March, the end of this battle was in sight. Sherman was advancing through South Carolina and would soon reach Virginia. Sherman’s troops were coming up on Lee's south. Thus, Lee knew he would have to give up Petersburg, or get annihilated. To accomplish this, Lee attempted an attack on Fort Stedman. Lees' troops seized the fort. However, in the ensuing counterattack, Union forces recaptured it, as well as some of the Confederate fortifications. Lee lost 5,000 men and his lines were now so thin they could not hold for long.
Grant ordered Sheridan to turn the Confederate flank south of Petersburg. In the ensuing battle, called: “Five Folks”, Union troops won a decisive victory, when half the Confederate forces surrendered. Grant then ordered an assault all along the lines for the next morning, the 2nd of April. The assault succeeded and the Confederates were forced to pull out of Petersburg, as well as Richmond