Apartheid laws were a set of laws that enforced racial segregation and discrimination in South Africa during the apartheid era. These laws mandated the separation of people according to their race, and provided a system of institutionalized racial segregation and discrimination.