The Jim Crow laws legalized racial segregation and discrimination in the Southern United States between 1877 and 1965. They mandated the separation of public facilities for blacks and whites, including separate schools, public places, and public transportation. The laws were established in the late 19th and early 20th centuries by Southern state legislatures to disenfranchise and remove political and economic gains made by blacks during Reconstruction. Court rulings like Plessy v. Ferguson in 1896 aided the establishment and preservation of racial segregation by determining that "separate but equal" public facilities were constitutional.