The answer is "discrimination".
Discrimination is treatment or thought of, or making a qualification for or against, a man in view of the gathering, class, or classification to which the individual is seen to have a place. We can discriminate people on the basis of skin color, sex, ethnicity, eye color etc.