African-American discrimination in the U.S. Military refers to discrimination against black people who have served in the U.S. military from its creation during the Revolutionary War to the end of segregation by President Harry S. Truman's Executive Order 9981 in 1948 that officially ended segregation in the U.S. military.
African-Americans served on both sides of the war in the capacity of both fighting men and slaves. While the northern states had opened up their state militias to freed slaves, it was forbidden in the south to arm slaves as the southern planters feared the worst from their former slaves. The Royal Governor of Virginia, John Murray, 4th Earl of Dunmore, issued an emancipation proclamation in November 1775, promising freedom to runaway slaves who fought for the British. Sir Henry Clinton, Commander in Chief of British forces, issued a similar edict in New York in 1779. Over 100,000 slaves escaped to the British lines; most served as laborers or orderlies for the British. Though the former slaves were promised freedom, they eventually ended up in Canada due to the British losing the Revolutionary War.
In response, George Washington lifted the ban on black enlistment in the Continental Army in January 1776. All-black units were formed in Rhode Island and Massachusetts; many enrolls were slaves promised freedom for serving. At least 5,000 African-American soldiers fought as revolutionaries, while at least 20,000 served with the British.
While whites still did not particularly like the idea of arming blacks during the war, many of the sailors in the U.S. Navy were black. In fact, during the Battle of Lake Erie African-Americans made up about one-quarter of the personnel in the American naval squadrons. While they served faithfully in the Navy, they were not allowed to serve in the Army. The law of 1792, which generally prohibited enlistment of blacks in the Army, became the United States Army's official policy until 1862. Due to its chronic shortage of personnel, the Navy never bothered with any restrictions on the enlistment of African-Americans.