Crowds of protesters attended the council meeting
Campaigners against plans for an incinerator near a village school have won their fight after the council voted unanimously to reject the scheme.
Hundreds of people have been fighting the proposed £23m plant, at Marston Moor Business Park in Tockwith, amid fears it would a risk to health.
Bus loads of protesters attended North Yorkshire County Council's planning meeting to see councillors refuse it.
BCB Environmental Management said it was considering an appeal.
Managing director Phil Boardman said: "It won't be my decision alone, so I cannot say to you at this moment that we will appeal, but I will say put your money on it."
However, he was not optimistic about the outcome.
"We could not as a company have tried harder to get our message across," he said.
"We will not win the battle, it is an impossible fight."
One campaigner who attended Tuesday's planning meeting, said: "It's a splendid decision. The council did what they had to do.
"The site is totally wrong - right next to a rural village in North Yorkshire."
Had it been given the go-ahead, the plant would have burnt 60,000 tonnes of waste less than a kilometre (0.6 miles) from the primary school.
The planning application stated it would "process non-hazardous, municipal waste, commercial and industrial waste from the local area and businesses, together with hazardous waste from the adjacent Waste Transfer Station to generate power to be exported to the National Grid".
Graeme Dent, governor at Tockwith Primary School, said: "This is excellent news.
"We've just got to hope now that this goes away and we take away the fear from all of these people for a long time."