Answer:
The laws separating people by race are called segregation laws. Such laws existed in the US after the Civil War, until legally challenged beginning in 1954.
An extreme form of segregation was the system of apartheid in South Africa (1948-1994), which allowed the white minority to control the country while disenfranchising the black majority.