At least 22 people have died, and 16 others have been injured after two residential buildings collapsed in the Moroccan city of Fez.

The two four-storey buildings, which were home to eight families, fell early Wednesday morning, according to local officials and state media.

Reports indicate that these buildings, located in the Al Massira suburb of the new part of the city, had been showing signs of deterioration for several years.

Fez is one of Morocco's oldest cities, with parts dating back to the 8th century, and is known as its third-most populous city.

A search and rescue operation is currently underway to find individuals who may still be trapped beneath the rubble. Videos from the scene show emergency workers and machinery working diligently through the debris even as night falls.

In some footage shared by the news outlet Akhbarona, emergency services can be seen carrying a stretcher with a body away from the collapse site.

Residents of nearby buildings have been evacuated as a precautionary measure, according to state media.

Those taken to the hospital are reported to have suffered a range of injuries.

This incident follows another collapse in May where nine people died when a condemned building crumbled in a different neighborhood of Fez. Earlier this year, five individuals also lost their lives when a house in the old city caved in due to heavy rain and strong winds.