What document freed the slaves in the south?

The Emancipation Proclamation freed slaves in all the rebelling states.