Sainsbury's has signed a legally-binding document with the Equality and Human Rights Commission after being found liable for sexual harassment against a member of staff.
The supermarket chain was ordered to pay £9,585 in damages to a former worker in August last year, after it was ruled it failed to take reasonable steps after a male colleague threatened to rape her.
The equality watchdog said that the retailer has now signed an agreement which requires it to take all reasonable steps to prevent employees from committing harassment.
This contains a discrimination guide for line managers and employees, advice for staff on how to deal with harassment, establishing more effective training and providing regular reports to the EHRC on its progress.
Rebecca Hilsenrath, chief executive of the EHRC, said: "Everyone deserves a safe working environment and today we all recognise that frontline workers, like those who kept supermarkets open during lockdown, fully deserve our respect and protection.
"We're pleased to be working with Sainsbury's and I hope that the improvements they have agreed to put in place will set the tone and standard for others to follow.
"We need to learn the lessons from both #MeToo and lockdown and ensure that we are valuing essential workers and ensuring that our workplaces are fit for the values of the 21st century."
A worker at the grocery chain won an employment tribunal claim following an incident which took place in October 2016.
The tribunal heard a male colleague came in close proximity to the victim and said: "I feel like raping you. I have an erection."
The man denied making the remark, claiming he had said: "You wake me up". He was dismissed from Sainsbury's in January 2017 following a disciplinary hearing.
A Sainsbury's spokesperson said: "Safety is our highest priority and we do not tolerate harassment or abuse of any kind. We took immediate steps in 2016 to develop our training and processes and are committed to working closely with the EHRC."
Last month, London North Eastern Railway agreed an agreement to improve its service for disabled passengers, while bus company Go-Ahead London entered pledged to safeguard its employees against sexual harassment.