Answer:
The Black Codes and Jim Crow Laws
After the United States Civil War, state governments that had been part of the Confederacy tried to limit the voting rights of black citizens and prevent contact between black and white citizens in public places.
Colored Water Fountain
The effort to protect the rights of blacks under Reconstruction was largely crushed by a series of oppressive laws and tactics called Jim Crow and the black codes. Here, an African-American man drinks from a water fountain marked "colored" at a streetcar terminal in Oklahoma City, Oklahoma in 1939.
Black codes and Jim Crow laws were laws passed at different periods in the southern United States to enforce racial segregation and curtail the power of black voters.
After the Civil War ended in 1865, some states passed black codes that severely limited the rights of black people, many of whom had been enslaved. These codes limited what jobs African Americans could hold, and their ability to leave a job once hired. Some states also restricted the kind of property black people could own. The Reconstruction Act of 1867 weakened the effect of the black codes by requiring all states to uphold equal protection under the 14th Amendment, particularly by enabling black men to vote. (U.S. law prevented women of any race from voting in federal elections until 1920.)
During Reconstruction, many black men participated in politics by voting and by holding office. Reconstruction officially ended in 1877, and southern states then enacted more discriminatory laws. Efforts to enforce white supremacy by legislation increased, and African Americans tried to assert their rights through legal challenges. However, this effort led to a disappointing result in 1896, when the Supreme Court ruled, in Plessy v. Ferguson, that so-called “separate but equal” facilities—including public transport and schools—were constitutional. From this time until the Civil Rights Act of 1964, discrimination and segregation were legal and enforceable.
One of the first reactions against Reconstruction was to deprive African-American men of their voting rights. While the 14th and 15th Amendments prevented state legislatures from directly making it illegal to vote, they devised a number of indirect measures to disenfranchise black men. The grandfather clause said that a man could only vote if his ancestor had been a voter before 1867—but the ancestors of most African-Americans citizens had been enslaved and constitutionally ineligible to vote. Another discriminatory tactic was the literacy test, applied by a white county clerk. These clerks gave black voters extremely difficult legal documents to read as a test, while white men received an easy text. Finally, in many places, white local government officials simply prevented potential voters from registering. By 1940, the percentage of eligible African-American voters registered in the South was only three percent. As evidence of the decline, during Reconstruction, the percentage of African-American voting-age men registered to vote was more than 90 percent.