How are employees protected from dismissal because of an act of discrimination?

Under the Equality Act 2010, a dismissal can constitute less favourable treatment for the purposes of direct discrimination and unfavourable treatment for the purposes of victimisation if the less favourable treatment is because of the protected characteristic ie age, disability, gender reassignment, marriage and civil partnership, pregnancy and maternity, race, religion or belief, sex or sexual orientation. It can also give rise to indirect discrimination (except in relation to the protected characteristic of pregnancy and maternity to which the indirect discrimination provisions do not apply) if the employer applies a provision, criterion or practice that results in the dismissal of someone with a protected characteristic and the employer cannot show the application of the provision, criterion or practice to be a proportionate means of achieving a legitimate aim.