The Battle of Gettysburg was fought during the American Civil War. It took place from July 1 to July 3, 1863. The battle occurred in and around the town of Gettysburg, Pennsylvania, and is considered one of the most significant battles of the Civil War. It was fought between the Confederate Army, led by General Robert E. Lee, and the Union Army, commanded by General George G. Meade. The Battle of Gettysburg resulted in heavy casualties on both sides but ended in a Union victory. It is often viewed as a turning point in the war, as it marked a major setback for the Confederacy and boosted Union morale.