Final answer:
The Civil Rights Act of 1964 made it illegal to discriminate against people on the basis of their race.
Step-by-step explanation:
The piece of legislation that made it illegal to discriminate against people on the basis of their race is The Civil Rights Act of 1964. This landmark legislation was signed into law by President Lyndon B. Johnson and aimed to end racial segregation and discrimination in public places, schools, and employment. It prohibits discrimination on the basis of race, color, religion, sex, or national origin.
Learn more about Civil Rights Act of 1964