The Scottish Fire and Rescue Service was first alerted at 5.05pm on Sunday, August 25 to reports of the fire within Woodmill High School.
At its height more than 80 firefighters were in attendance as they worked to contain the fire which has now been brought under control.
Currently, 10 fire appliances and a height appliances remain alongside several support vehicles.
Firefighters are presently checking for any hidden fire spread and working to dampen down remaining hot spots.
There are no reported casualties.
Roddie Keith is the Scottish Fire and Rescue Service’s Local Senior Officer for Fife.
He said: “This was a complex incident and our crews worked through the night in challenging conditions to contain this fire and prevent further spread within the building.
"Through effective planning, they surrounded the fire and extinguished the flames.
"However we will remain in attendance for some time yet as we check for any hidden fire spread and also work to dampen down any remaining hot spots.”
He added: "Our advice remains that members of the public should avoid the area to allow access for emergency service vehicles.
"I would like to thank our partners, the community and our firefighters, colleagues in Operations Control and support staff as we continue to work to bring this incident to a safe conclusion."
Pictures courtesy of Euan's Emergency Photography (@Euans_EP)