The Civil Rights Act of 1871, also known as the Ku Klux Klan Act, was a federal law in the United States that aimed to protect the civil and political rights of African Americans by allowing individuals to sue for civil rights violations. It was enacted to combat the widespread racial violence and intimidation tactics used by the Ku Klux Klan and other groups during the Reconstruction era.