Trash collectors' strike that had filled Spain's capital with garbage ends after 13 days

A girl plays with a skipping rope next to a pile of rubbish surrounding trash containers during the ninth day of a garbage collectors strike, in Madrid, Spain, Wednesday, Nov. 13, 2013. Street cleaners and garbage collectors who work in the city's public parks walked off the job in a strike called by trade unions to contest the planned layoff of more than 1,000 workers. Madrid's municipal cleaning companies, which have service supply contracts with the city authorities, employ some 6,000 staff. (AP Photo/Emilio Morenatti) (The Associated Press)

A man sweeps the street next to a pile of rubbish surrounding trash containers during the ninth day of a garbage collectors strike, in Madrid, Spain, Wednesday, Nov. 13, 2013. Street cleaners and garbage collectors who work in the city's public parks walked off the job in a strike called by trade unions to contest the planned layoff of more than 1,000 workers. Madrid's municipal cleaning companies, which have service supply contracts with the city authorities, employ some 6,000 staff. (AP Photo/Daniel Ochoa de Olza) (The Associated Press)

A woman walks by a pile of rubbish during the eleventh day of a garbage collectors strike, in Madrid, Spain, Friday, Nov. 15, 2013. Street cleaners and garbage collectors who work in the city's public parks walked off the job in a strike called by trade unions to contest the planned layoff of more than 1,000 workers. Madrid's municipal cleaning companies, which have service supply contracts with the city authorities, employ some 6,000 staff. (AP Photo/Andres Kudacki) (The Associated Press)

A trash collectors' strike that left Madrid's streets piled high with garbage has ended after 13 days, with workers voting to accept a deal hammered out by trade unions and employers.

Unions called the strike when Madrid's municipal cleaning companies announced plans to lay off more than 1,000 workers and pay cuts for some 5,000 street cleaners, park workers and garbage collectors.

The return to work Sunday comes after the companies canceled the threatened layoffs in exchange for improved efficiency and a wage freeze until 2017.

The strike's end coincides with sustained rains that were threatening to block drains with garbage and leaves as winter approaches.