DoorDash will pay more than $5.3 million to settle allegations brought by the city of San Francisco that it failed to provide minimum health care coverage and sick leave to its couriers, City Attorney David Chiu announced Monday.

The agreement stems from a complaint San Francisco Supervisor Aaron Peskin filed with the city’s Office of Labor Standards Enforcement three years ago. San Francisco’s labor laws require a company with more than 20 employees to spend a minimum amount on health care benefits per employee and to offer sick leave to all employees in the city.