Employers in the UK now have a legal duty to take reasonable steps to prevent sexual harassment and create a safe working environment. The Equality Act 2010 also covers other types of harassment, including less favourable treatment because of how someone responded to previous sexual harassment.