Final answer:
The Civil Rights Act of 1964 prohibits discrimination based on race, color, religious beliefs, sex, or national origin.
Step-by-step explanation:
The piece of federal legislation that prohibits discrimination based on race, color, religious beliefs, sex, or national origin is the Civil Rights Act of 1964.
Learn more about Civil Rights Act of 1964