On May 18, 1896, the U.S. Supreme Court ruled 7-1 in Plessy v. Ferguson that state-mandated segregation laws did not violate the Constitution if facilities for each race were equal in quality. This established the "separate but equal" doctrine. The case originated when Homer Plessy was arrested for refusing to leave a whites-only train car in Louisiana, challenging the state's 1890 Separate Car Act. Justice John Marshall Harlan wrote the lone dissenting opinion. The ruling provided legal foundation for racial segregation until Brown v. Board of Education overturned it in 1954.