Segregation refers to the social and geographical separation or isolation of people based on perceived group affiliations, which can include race, ethnic origin, religion, and class. Beginning in 1877, states began to create laws that forced African Americans to use separate public facilities and accommodations from white people. These laws, commonly referred to as "Jim Crow" laws, covered all aspects of life and were prevalent in the South and border states until the mid-1960s. The purpose of the laws was to convey and maintain a sense of inferiority among non-whites, and a sense of superiority among whites. This type of segregation is called "de jure" segregation, or segregation by law.