President Lyndon B. Johnson signed the Civil Rights Act of 1964 into law on July 2, 1964, ending segregation in public places and banning job discrimination based on race, color, religion, sex, or national origin.