West Park Primary School are set to be the first 'solar' school in Hartlepool.
Paul Hewitson, project co-ordinator of Hartlepower CIC asked listeners of Radio Hartlepool to vote in the 'M&S Community Energy' competition.
It was a nail-biting time as the local school was up against several across the country to be in with a chance of winning the funding of £40,000.
The pupils and parents used social media networks such as Facebook and Twitter to gain votes.
The school is already classed as a 'green flag eco school' and now winning this will ensure they can take it to the next level.
Mandy Hall (left) Headteacher of West Park Primary School and Paul Hewitson (right) from Hartlepower CIC
Radio Hartlepool helped this community action by producing a 'community break' news story which was played every day leading up to the closing date.