Food waste from Bath and north-east Somerset schools could be used to generate renewable energy if a new trial is successful.
Scraps from Westfield Primary in Radstock will be analysed in a laboratory to see if they could produce power or fertiliser.
The council is working in partnership with GENeco, operator of a cogeneration plant, on the three-week trial.
The kitchen at Westfield - a silver Eco-School - also serves food for nearby Trinity and Welton primaries.
Kim Bridges, the cook in charge, said: "We used to save all our food to feed to the pigs, but since legislation following the foot and mouth outbreak we haven't been able to.
"We've always found it easy to separate out the food rather than sending it to landfill."
Mohammed Saddiq, GENeco's general manager, said the trial would provide useful research on how schools' food waste could be recycled in a sustainable way.
He said: "We would like to help businesses and organisations to look at using more sustainable methods of disposing food waste through technology, such as anaerobic digestion. This is successfully being used in the sewage treatment process to generate green energy from waste before it is safely recycled back to land and used as a fertiliser by farmers."