The correct answer is B. British colonization.
Apartheid in South Africa was largely a product of the systematic racial segregation and policies established during and after British colonization, which laid the foundation for institutionalized racial discrimination and segregation.