What was the intended effect of the Emancipation Proclamation?

ATo free enslaved people in the Unionincorrect answer
BTo free enslaved people in the border statesincorrect answer
CTo declare slavery illegal in the Union and Confederacyincorrect answer
DTo free enslaved people in the Confederacy

DTo free enslaved people in the Confederacy