The differences between the Southern and Northern states on the issue of slavery led to a great deal of tension and conflict between the two regions. In 1861, the Southern states seceded from the Union and formed the Confederate States of America, which fought a four-year war against the United States in order to preserve slavery. The war ended in 1865 with the defeat of the Confederacy, and slavery was abolished in the United States.