How did the slaves gained their freedom in the United States?

i know that it was after the civil war, but is there anything else
thanks for helping
5 answers 5