What is the Jim Crow Law?

After the Civil War, anti-African American legislation was passed which segregated the blacks from the whites. These laws were called the Jim Crow laws. Blacks were not allowed in white schools, in restaurants, theaters and hotels.