What was the Civil Rights Act of 1866 designed to do?

The Civil Rights Act of 1866 was designed to protect the rights and liberties of newly freed African Americans. It aimed to grant them equal rights and opportunities in areas such as property ownership, contracts, legal proceedings, and access to public accommodations. It was enacted to counter the Black Codes, which were discriminatory laws enacted by Southern states after the Civil War, and ensure the civil rights of African Americans were protected at the federal level.