On what basis, do we find the division as superior subordinate made, in the society?

Social inequality is done on the basis of caste, religion, colour and gender which have an adverse impact on democracy.