The Union was fighting to keep control of the Southern states. The Confederacy was fighting to keep the slaves.