At first the Civil War was fought to keep the states from leaving the Union. Later it was fought for the rights of slaves to be free. by Stacy