Why did the battle of Vicksburg occur?

The Battle of Vicksburg happened because the union and confederacy needed a place to settle their differences and stop slavery. Ulysses S. Grant began the Battle of Vicksburg.