Subsequent legislation, especially the Population Registration and Immorality Acts of 1950, facilitated its implementation by requiring all individuals living in South Africa to register as a member of one of four officially defined racial groups and prohibiting extramarital sexual relationships between people of different races.