Racism is the mistreatment of people based on their race, ethnicity, origins or colour.
Racism can also be because of a perceived characteristic. For example, if you are assumed to be of a particular ethnicity and treats you less favourably because of it, it is still racist even if you do not of that ethnicity.