It is my understanding that the war was because the south wanted states rights (including slavery I guess).

The south’s cotton industry was a HUGE source of revenue and Lincoln did not want to lose that economy.