The Ocean City Fire Department received a call at 4:40 p.m. Friday from a resident of a row home on the 600 block of Haven Avenue whose smoke detector had activated.
Firefighters arrived at the scene to find smoke pouring from the middle of a row of nine contiguous homes. They located the blaze on the second floor of the sixth unit.
A single occupant of the unit left the building unharmed, Fire Chief Chris Breunig said at the scene.
Multiple departments, including Marmora and Margate, responded to the fire.
Firefighters were able to limit the fire to the single unit but were hampered by clutter in the residence, according to Breunig. Shortly after the blaze was controlled, firefighters could be seen removing charred mattresses, clothes and other material from the second floor of the home.
Breunig said the residents of the unit would be relocated but all neighbors would be able to return to their homes.
Nobody was injured in the fire. The cause is still under investigation.