<human>:  What is the history of the Battle of Gettysburg?
<bot>: The Battle of Gettysburg was fought between Union and Confederate forces on July 1-3, 1863, during the American Civil War. It was a decisive victory for the Union, as they were able to repel the Confederate forces, resulting in a major turning point in the war. The battle resulted in over 85,000 casualties, making it the bloodiest battle of the entire war. The victory at Gettysburg secured the Union's control of the Maryland and Pennsylvania border and ultimately helped lead to the Confederate surrender at Appomattox the following spring. To this day, many scholars consider the Battle of Gettysburg to be the defining moment of the American Civil War.