Why did the union fight in the civil war?

to end slavery in the south.