B. to pressure the South African government into ending its system of racial segregation
The United States imposed an embargo on apartheid-era South Africa primarily to exert pressure on the South African government to dismantle its system of racial segregation and discrimination against nonwhite citizens. The embargo aimed to isolate South Africa internationally and support the anti-apartheid movement.