How did the civil war take place?

Because the southern 25 states wanted to have slavery but the northern 25 states wanted everyone to be treated equally