Multiple fire appliances were called to attend a blaze in Dunfermline on Monday night.
The fire is believed to have started just before 9pm on Walmer Drive in the Fife city.
It is unknown if there were any casualties or how the fire started.
Police Scotland were also at the scene.
A spokesperson for the Scottish Fire and Rescue Service said: “We got the call at 8.51pm to reports of a derelict building on fire at on Walmer Drive in Dunfermline.
“We had seven pumps in attendance.”
“The fire was extinguished and we left the scene at 6.01am on Tuesday morning.”
A Police Scotland spokesperson said: “We were called at around 9.15pm to a report of a fire in a derelict building on Walmer Drive.
“Emergency services attended and officers assisted colleagues from the Scottish Fire and Rescue Service with road traffic management.
“Part of Walmer Drive remains closed.
“No one was injured and inquires are ongoing to establish the full circumstances.”
Plans to turn building into flats
The building, which laid vacant for a decade, was once used by Fife Council for offices.
A 19th Century villa sits next to the building, just yards from the Kingsgate Shopping Centre and High Street.
Last year, plans were lodged to demolish both buildings to make way for a five-storey block of 42 apartments.
In March, Historic Environment Scotland submitted an objection to the demolition.
They argued that the reasons provided do not justify the removal of the C-listed building.