What did the the emancipation proclamation do?

It was suppose to free the slaves but it was nearly two years later before most slaves new they were free.