Just before the Civil War, there were 19 free states and 15 slave states. During the war, slavery was abolished in some of these jurisdictions, and the Thirteenth Amendment to the United States Constitution, ratified in December 1865, finally abolished slavery throughout the United States.