<human>:  When did the battle of Gettysburg take place?
<bot>: The Battle of Gettysburg took place from July 1st to July 3rd, 1863. It was a major battle in the American Civil War, fought between the Union Army of the Potomac and the Confederate Army of Northern Virginia. The battle was fought in and around Gettysburg, Pennsylvania. The Union army defeated the Confederate army, and the Confederates retreated. The battle was a turning point in the war, as the Union Army won the war by taking the Confederate capital of Richmond, Virginia.