How fundamental to the Confederacy's ideology were white supremacy/racism? Was preserving white hegemony the main driving force for their secession?

by [deleted]

Obviously this question has applications to current events, but I hope it is asked and answered in a historical and politically neutral way that can help me better frame the current debate going on. I'm not asking for a Historian's opinion on the current debate, nor their political beliefs. Just the question above.

LuxNocte