Was the turning point of the Civil War which ended any further advancements of the confederacy the appomattox courthouse, or the battle of Gettysburg?

The turning point of the Civil War which ended any further advancements of the Confederacy is often considered to be the Battle of Gettysburg. This significant battle in July 1863 resulted in a major Union victory and marked the furthest northern advance of the Confederate Army. The loss at Gettysburg was a major blow to the Confederacy and significantly weakened their military power. The Confederate surrender at Appomattox Courthouse in April 1865 marked the end of the war, but it was the defeat at Gettysburg that ultimately sealed the fate of the Confederacy.