The Confederate States of America was a collection of 11 Southern states that seceded from the United States from 1861 to 1865, primarily to preserve the institution of slavery and maintain their agrarian way of life. The Confederacy was established in response to increasing tensions over states' rights and the role of slavery in American society, leading to a civil war between the North and South.