The Battle of Gettysburg was July 1-3. Lee began heading back to Virginia on July 4, 1863, the 87th anniversary of the Declaration. This was the same day that Vicksburg surrendered to Ulysses S. Grant, leaving the Mississippi river entirely under US control.
And for eighty-five years after that the city of Vicksburg, Miss. didn’t celebrate The Fourth of July.