The war also had a significant impact on race relations. The fight to defeat Nazism, a doctrine based on racial prejudice and white supremacy, offered African Americans a chance to press for equal opportunity at home. By contrast, Japanese Americans experienced intensified discrimination and oppression as wartime anti-Japanese hysteria led to the internment of Japanese Americans, an erosion of their civil rights. They were freed toward the end of the war, but their incarceration left scars. Finally, Mexican Americans benefited from wartime jobs but continued to experience ethnic prejudice.