Until the 1940s, Mexican Americans throughout the Southwest faced discrimination in education, based on national origin. In California, Gonzalo Mendez filed a class-action lawsuit on behalf of his children and 5,000 Mexican Americans who were denied equal access to education. Mendez won; in 1946, the U.S. District Court in southern California ruled that separate is not equal, formally challenging the decades-old "separate but equal" doctrine.