What was the Purpose of the Civil War?

Most people believe that the purpose was to abolish slavery but the real reason was the fact that the south wanted to secede from the US and start its own nation.