<human>:  What is the significance of the Battle of Gettysburg?
<bot>: The Battle of Gettysburg was a pivotal battle in the American Civil War that took place from July 1 to July 3, 1863. The battle resulted in a significant Union victory, ending Confederate General Robert E. Lee's second and most ambitious invasion of the North. The battle was a turning point in the war, as it effectively ended any chance of a Confederate victory and set in motion a chain of events that would lead to the Union's eventual victory. It is also considered the defining event in the turning of public sentiment against the Confederacy.