Jim Crow laws were state and local laws that enforced racial segregation in the Southern United States. All were enacted in the late 19th and early 20th centuries by white Democratic-dominated state legislatures after the Reconstruction period. The laws were enforced until 1965. In practice, Jim Crow laws mandated racial segregation in all public facilities in the states of the former Confederate States of America, starting in the 1870s and 1880s, and were upheld in 1896, by the U. S. Supreme Court's "separate but equal" legal doctrine for facilities for African Americans, established with the court's decision in the case of Plessy vs. Ferguson. Moreover, public education had essentially been segregated since its establishment in most of the South, after the Civil War (1861–65).