Legislation ensures there is a legal responsibility for employers to treat everyone fairly and equally. It allows people to make a compensation claim against an employer that they feel has treated them differently because of race, religion, language, gender, disabilities, social status, family and age etc.