What is the three day battle that resulted in defeat of Lee’s army, the appomattox courthouse, or the battle of Gettysburg?

The three day battle that resulted in the defeat of Lee's army was the Battle of Gettysburg. The Appomattox Courthouse was where General Robert E. Lee surrendered to General Ulysses S. Grant, effectively ending the Civil War.