Secondary schools in Thornbury and Alveston that had their funding troubles exposed on a BBC documentary are to be given £14million.

Both Castle and Marlwood appeared on School, where they were shown to be struggling following government cuts.

Will Roberts, CEO of the Castle School Eduction Trust (CSET) of which both the schools are a part, admitted on the documentary they were ‘at the end of the road’ in terms of the school’s financial security.

The plans come as part of the £78million capital funding programme outlined in South Gloucestershire Council’s recently approved budget, although what the money will be spent on is unclear.

The Council will work with the CSET to develop a masterplan which will secure sufficient sustainable secondary school places for the existing communities.

There had been plans to expand Castle School and move the sixth form to the main school site although this is now under review because of ‘wider considerations’ that include urgent repair work needed at both schools.

A CSET spokesman said: “The condition of our school buildings has become an increasing problem over the years with an urgent need for investment to ensure the sustainability of both schools.”

The council is continuing discussions with the Regional Schools Commissioner and Department for Education to agree a sustainable future for the two schools.

Further investment is to be made at a number of primary schools in the Thornbury area in the plans, with Crossways Infants and Juniors set to receive £190,000 for the replacement of hot and cold water services.

Olveston and Oldbury Primary Schools will also benefit.

Cllr Toby Savage, leader of South Gloucestershire Council and cabinet member for schools, said: “I am delighted that these plans put forward have the potential to drastically improve education standards across South Gloucestershire.

“Castle School and Marlwood are pillars of the community and this funding will give them a much-needed boost.”