The war was about cutting ties with the Yankee north that was culturally/politically opposite to the south.
The north beat up on the south in congress and made laws that disparaged the south. No on except the elites in the south wanted slavery. They saw slavery as taking their jobs.