During the Reconstruction era, African Americans gained the crucial right to vote, which led to their involvement in politics, including the election of over 600 African American legislators. However, Southern states implemented black codes that restricted freedoms and maintained white supremacy through various oppressive laws and violent actions by groups such as the Ku Klux Klan. The black codes were eventually abolished by the 14th Amendment and Reconstruction policies, yet the struggle for civil rights continued with the emergence of Jim Crow laws.