Fire ripped through a 20-storey residential building in Milan, northern Italy, on Sunday, leaving rescue workers scrambling to make sure no one had been caught in the spectacular flames and thick smoke.

The blaze started on the upper floors of the tower on the southern outskirts of the capital of the Lombardy region.

The fire started on the upper floors
The fire started on the upper floors AFP / Piero CRUCIATTI

"The flames then spread to the lower levels," causing thick smoke, the fire services said on a Twitter account.

The building houses some 70 families, who were being contacted in an effort to make sure no one was missing.

Twenty resideints reportedly suffered slight smoke inhalation
Twenty resideints reportedly suffered slight smoke inhalation AFP / Piero CRUCIATTI

"The firemen are going from apartment to apartment, knocking down doors to make sure no one remains inside," Milan mayor Giuseppe Sala told the Corriere della Sera newspaper.

"But we are optimistic because people had time to get out," he added.

The daily said about 20 residents suffered slight smoke inhalation.

Dozens of ambulances and fire engines were at the scene.