Union armies had gained two important victories at about the same time. The day after the battle of Gettysburg, Union forces defeated Confederate forces at Vicksburg, Mississippi. This victory gave them control of the Mississippi River. And it split the states of the Confederacy.