The Civil Rights Act of 1866 is a federal law that prohibits all discrimination on the basis of race.