The fire, which broke out at the Bangabandhu Sheikh Mujib Medical University (BSMMU) building was doused nearly half an hour after the incident on Monday.
No casualties were reported, fire officials said.
Mohammad Shahjahan Shikder, deputy assistant director of Fire Service and Civil Defence media cell, said the fire broke out at the D-block of the13th floor of the 17-storey building around 6:21 pm and it spread soon.
Five fire tenders rushed to the spot and brought the fire under control around 6:40 and they took five minutes more to douse the flame fully around 6:45 pm, he said.
However, what caused the fire could not be known immediately.