Fire crews were called to the Old Coroners Court building on Nursery Street in Sheffield at 10:40pm on Sunday night.
Five fire engines attended the unused building.
Firefighters wearing breathing apparatus used hose reels to tackle the fire which was on the first floor.
Crews left the scene at 1:30am.
The fire is believed to have been started deliberately.