From the 1880s into the 1960s, a majority of American states enforced segregation through “Jim Crow” laws (so called after a black character in minstrel shows). From Delaware to California, and from North Dakota to Texas, many states (and cities, too) could impose legal punishments on people for consorting with members of another race. The most common types of laws forbade intermarriage and ordered business owners and public institutions to keep their black and white clientele separated. Here is a sampling of laws from various states.
Mental Hospitals: The Board of Control shall see that proper and distinct apartments are arranged for said patients, so that in no case shall Negroes and white persons be together. Georgia
Intermarriage: It shall be unlawful for a white person to marry anyone except a white person. Any marriage in violation of this section shall be void. Georgia
Barbers: No colored barber shall serve as a barber [to] white women or girls. Georgia
Burial: The officer in charge shall not bury, or allow to be buried, any colored persons upon ground set apart or used for the burial of white persons. Georgia
Restaurants: All persons licensed to conduct a restaurant, shall serve either white people exclusively or colored people exclusively and shall not sell to the two races within the same room or serve the two races anywhere under the same license. Georgia
Amateur Baseball: It shall be unlawful for any amateur white baseball team to play baseball on any vacant lot or baseball diamond within two blocks of a playground devoted to the Negro race, and it shall be unlawful for any amateur colored baseball team to play baseball in any vacant lot or baseball diamond within two blocks of any playground devoted to the white race. Georgia
Parks: It shall be unlawful for colored people to frequent any park owned or maintained by the city for the benefit, use and enjoyment of white persons…and unlawful for any white person to frequent any park owned or maintained by the city for the use and benefit of colored persons. Georgia
Wine and Beer: All persons licensed to conduct the business of selling beer or wine…shall serve either white people exclusively or colored people exclusively and shall not sell to the two races within the same room at any time. Georgia
See more Jim Crow Laws here.