There was great tension between the north and the south over a great many issues. Slavery was one issue, but it was part of a larger issue of the vast social and economic differences between the North and South.
Slavery was clearly one of the top 3 reasons for the war, but not the only reason, or even the main reason.
The Civil war would have been fought if slavery wasnt an issue.