Inverkeithing High School has been forced to close for pupils after a kitchen blaze.
Firefighters were scrambled to the Hillend Road secondary school, shortly after 9pm on Thursday.
Onlookers said the street was awash with emergency services, as crews attempted to contain the blaze at the Fife school.
There were no reported injuries at the scene.
Parents received an email confirming the school would be closed on Friday, as the local authority and partners assess the damage.
At the height of the incident witnesses said six appliances were at the scene.
One resident, who lives just yards form the school, described seeing smoke “filling-up the canteen” area.
‘Very sad to see the building suffer like this’
He said:“Police had blocked off the entrance to the school, I could clearly see a number of fire engines down by the dining hall area of the building.
“A short time later I saw the high reach ladder being raised high over the roof of the school.
“I could also see smoke filling up the canteen and it was spreading through the building.
“As a former pupil at the school it’s a shock and very sad to see the building suffer like this.”
Another resident told The Courier that he saw a number of firefighters wearing breathing apparatus entering the dining hall.
He said: “At first I could see four fire appliances including the specialist high reach vehicle down near to the dining hall.
“A further two fire engines arrived later.
“A number of firefighters wearing breathing equipment entered the dining hall and also further along the ground floor at other entrance points.
“Police had blocked the road access to the building though a number school and education officials arrived a short time later and were let through.”
Kitchen and dining area damaged
Head of education and children’s services, Shelagh McLean, said the intention was to reopen the school on Monday.
She said: “Thankfully no one was in the building at the time, and no one was hurt.
“The fire service and the school’s janitorial team were on the scene very quickly after the alarm was raised.
“The fire has affected the kitchen and dining area of the school on the ground floor of A Block.
“Our understanding is the fire was caused by an electrical appliance.
“A water pipe has burst because of the heat, and we took the decision last night to close the school to staff and pupils today while we carry out a full assessment of the damage.
“Our intention is to open the school to all pupils on Monday and we will be in touch with parents to give them more details on how the school will operate without access to A Block.
“The fire also affected electrical supply to Treetops Nursery which is closed today (Friday) until power can be restored.”
The Scottish Fire and Rescue Service confirmed appliances from Dunfermline, Burntisland and Lochgelly attended the incident.
Police Scotland said there were no suspicious circumstances surrounding the fire.