Teamsters Local Union #264, the union representing hundreds of Tops Markets warehouse employees, has ratified a new four-year contract, Tops said in a statement Monday.

This comes after the employees began striking on Friday.

The two sides reached a tentative agreement Friday night, but the union voted Saturday to reject the offer. The sides then reached an agreement again on Sunday.

The union represents about 590 Tops warehouse workers and drivers.

Tops released a statement, saying:

"Tops Friendly Markets and Teamsters Local Union #264, which represents Tops Distribution Center associates, have successfully achieved four-year contract agreements for the full union membership — which includes warehouse workers, drivers, sanitation workers, and maintenance staff. The contracts are now in place after they were approved by union membership on Monday, June 10, and all associates are resuming work immediately.

The ratified agreement provides industry-leading terms that exceed those agreed to in the past, while also ensuring our customers will continue to enjoy the service, selection, and value that they’ve come to expect from Tops Markets. We want to extend our gratitude to Teamsters Local Union #264 and everyone involved in the negotiations for their diligent work on behalf of our associates. We look forward to serving the grocery needs of our community together for many years to come."