A major upgrade will take place at the Borders primary school
A school which once faced being merged with another primary has secured £800,000 towards a major upgrade.
In 2003 it was proposed that Newlands Primary at Romanno Bridge in the Borders be closed and its pupils transferred to West Linton Primary.
But campaigners raised funds to save the school and create a new community facility on a site nearby.
Scottish Borders Council has now agreed to transfer the land to a community trust and support the school overhaul.
In 2005, Scottish Borders Council agreed to postpone that closure while fund-raising started for the new community facility.
Last year the project secured £1m from the Big Lottery Fund - its biggest ever award in the Borders.
Earlier this year it gained more than £800,000 from the Scottish Rural Development Priorities Scheme.
Now SBC has agreed to transfer land next to the school to the Newlands Community Development Trust to allow the project to proceed.
It has also found funding to support a major upgrade of the school.
SBC executive member for education, Catriona Bhatia, said she was delighted the authority had backed the plans.
She said: "In 2005, we gave the Newlands community a challenge that they have more than risen to.
"This is a pioneering project, which I am sure will be copied by rural communities across the Borders and Scotland."