Crews worked to ensure the area was made safe and all remaining hostpots were eliminated before handing full control of Woodmill High School back to the local authority.
At its height, more than 15 fire appliances and 80 firefighters were in attendance after the alarm was raised shortly after 5pm on Sunday, August 25.
Area Manager Roddie Keith is the Local Senior Officer for Fife, Stirling and Clackmannanshire.
He said: “Our crews remained on scene to absolutely ensure that this building was as safe as possible before we handed it back into the hands of our partners in Fife Council.
“This has been a challenging and protracted incident that required considerable resources to meet.
“However, as a national service we could draw upon resources from across the country, with equipment and staff coming from across Scotland to ensure we contained this large fire and brought the incident to a safe conclusion.”
“I would like to thank the community for their outstanding support throughout the incident and recognise the hard work put in by our partners, other emergency services and the local authority.”
“Additionally, I must also thank our dedicated firefighters who remained professional and effective in challenging conditions throughout.”
SFRS will continue to work alongside Police Scotland to establish the full facts and circumstances of the fire.