Battle of Gettysburg started when Confederate generals wanted Pennsylvania and their supplies because they were low on supplies. The Union then sent most of their army to fight against them so they couldn't get their supplies.
The results then ended up with Union winning and Confederate losing, making Confederate armies to retreat and change the tide of the war.
It is one of the most deadliest battles in the American Civil War