In 1862, President Lincoln's Emancipation Proclamation opened the door for African Americans to enlist in the Union Army. Although many had wanted to join the war effort earlier, they were prohibited from enlisting by a federal law dating back to 1792.
In addition to the problems of war faced by all soldiers, African-American soldiers faced additional difficulties created by racial prejudice.