Socially, many parts of America are still segregated, so segregation has not ended. Legal segregation ended gradually. In some states, public schools were never segregated, in others, school desegregation happened in the 19th century, while in others, it took the 1954 Supreme Court decision. Employment and housing discrimination had similar ends, with some states forbidding some forms of discrimination in the 19th century, while others continued to discriminate until the Civil Rights Act of 1964, and even after that until court cases led to meaningful enforcement of that act. Restrictive real-estate covenants that allowed legal racial discrimination in housing remained legal until the Fair Housing Act of 1968.