Answer:
When: January 31, 1865
Step-by-step explanation:
How: Due to Union measures such as the Confiscation Acts and Emancipation Proclamation in 1863, the war effectively ended slavery, even before ratification of the Thirteenth Amendment in December 1865 formally ended the legal institution throughout the United States.