Title VII of the Civil Rights Act of 1964 is the federal law forbidding sexual harassment. It establishes the legal foundation for preventing sexual harassment.