The Emancipation Proclamation was a presidential proclamation and executive order issued by United States President Abraham Lincoln on January 1, 1863, during the American Civil War. The Proclamation had the effect of changing the legal status of more than 3.5 million enslaved African Americans in the secessionist Confederate states from enslaved to free. The Proclamation declared "that all persons held as slaves" within the rebellious states "are, and henceforward shall be free". However, it was limited in many ways. It applied only to states that had seceded from the United States, leaving slavery untouched in the loyal border states. It also expressly exempted parts of the Confederacy (the Southern secessionist states) that had already come under Northern control. Most important, the freedom it promised depended upon Union (United States) military victory. Although the Emancipation Proclamation did not end slavery in the nation, it captured the hearts and imagination of millions of Americans and fundamentally transformed the character of the war. After January 1, 1863, every advance of federal troops expanded the domain of freedom. Moreover, the Proclamation announced the acceptance of black men into the Union Army and Navy, enabling the liberated to become liberators. By the end of the war, almost 200,000 Black soldiers and sailors had fought for the Union and freedom.