This was an example of an oligarchy type of government
It is a type of a government where a small minority, commonly a dozen wealthy people, decide for everyone in the country, that is for the majority. They do it because they are in power. This happened in South Africa because the apartheid wanted to segregate the majority.