<P> Union casualties in the Battle of Fort Stedman were 1,044 (72 killed, 450 wounded, 522 missing or captured), Confederate casualties a considerably heavier 4,000 (600 killed, 2,400 wounded, 1,000 missing or captured). But more seriously, the Confederate positions were weakened . After the battle, Lee's defeat was only a matter of time . His final opportunity to break the Union lines and regain the momentum was gone . </P> <P> After nearly ten months of siege, the loss at Fort Stedman was a devastating blow for Lee's army, setting up the Confederate defeat at Five Forks on April 1, the Union breakthrough at Petersburg on April 2, the surrender of the city of Petersburg at dawn on April 3, and Richmond that same evening . </P> <P> After his victory at Five Forks, Grant ordered an assault along the entire Confederate line beginning at dawn on April 2 . Parke's IX Corps overran the eastern trenches but were met with stiff resistance . At 5: 30 a.m. on April 2, Wright's VI Corps made a decisive breakthrough along the Boydton Plank Road line . While riding between the lines to rally his men, A.P. Hill was shot and killed by two Union soldiers . Wright's initial breakthrough was halted mid-day at Fort Gregg . Gibbon's XXIV Corps overran Fort Gregg after a heroic Confederate defense . This halt in the advance into the city of Petersburg allowed Lee to pull his forces out of Petersburg and Richmond on the night of April 2, and head for the west in an attempt to meet up with forces under the command of General Joseph E. Johnston in North Carolina . The resulting Appomattox Campaign ended with Lee's surrender to Grant on April 9 at Appomattox Court House . </P> <P> Richmond--Petersburg was a costly campaign for both sides . The initial assaults on Petersburg in June 1864 cost the Union 11,386 casualties, to approximately 4,000 for the Confederate defenders . The casualties for the siege warfare that concluded with the assault on Fort Stedman are estimated to be 42,000 for the Union and 28,000 for the Confederates . </P>

What was the result of the battle of petersburg
find me the text answering this question