In 1863 West Virginia was admitted to the Union as a separate state, with the proviso that it abolish slavery. A popular referendum then approved a plan whereby all blacks born after July 4, 1863, would enjoy freedom. By the end of the war, complete emancipation had been enacted.