After the National Party gained power in South Africa in 1948, its all-white government immediately began enforcing existing policies of racial segregation under a system of legislation that it called apartheid. Under apartheid, nonwhite South Africans (a majority of the population) would be forced to live in separate areas from whites and use separate public facilities, and contact between the two groups would be limited. Despite strong and consistent opposition to apartheid within and outside of South Africa, its laws remained in effect for the better part of 50 years. In 1991, the government of President F.W. de Klerk began to repeal most of the legislation that provided the basis for apartheid.