Read this and answer the question

Favoring relatives (nepotism) or personal friends (cronyism) of an official is a form of illegitimate private gain. This may be combined with bribery, for example demanding that a business should employ a relative of an official controlling regulations affecting the business. The most extreme example is when the entire state is inherited, as in North Korea or Syria. A lesser form might be in the Southern United States with Good ol' boys, where women and minorities are excluded. A milder form of cronyism is an "old boy network", in which appointees to official positions are selected only from a closed and exclusive social network – such as the alumni of particular universities – instead of appointing the most competent candidate.

What is it called when relatives are favored over other people?
nepotism