The Equality Act of 2010 legislates against pregnancy or maternity discrimination in the workplace, which means if an employee believes that an employer has treated them unfairly due to being pregnant, or having given birth, they can take legal action against a company at an employment tribunal.