answer: The Confederate States of America (CSA), also known as the Confederacy, was a government set up from 1861 to 1865 by a number of southern slave states that had declared their secession from the United States .