During the apartheid era, those classed as "Coloured" were oppressed and discriminated against. But, they had limited rights and overall had slightly better socioeconomic conditions than those classed as "Black". The government required that Blacks and Coloureds live in areas separate from Whites, creating large townships located away from the cities as areas for Blacks.