This system, called apartheid, ended in 1994.
But there was loads of violence and crime because of the unfair system.
People hoped there'd be less crime after apartheid ended, but it hasn't really happened.
Loads of violent crimes have actually gone up.