At least five people were pulled dead from the ruins of a building that collapsed in the city of Demnat after the devastating earthquake that shook Morocco on Friday night, Al Arabiya network reports.

The earthquake that occurred shortly after 23:00 (local time, 01:00 Greek time) had a magnitude of 6.8, according to the US Seismological Center. The epicenter is located 77 kilometers southwest of the city of Marrakesh and the focal depth is estimated at 18.5 kilometers.

Videos released on social media platforms show the ruins of flattened buildings and terrified residents taking to the streets.

The earthquake was also felt in other African countries, such as Mauritania and Algeria, as well as in the southern part of Portugal.

On February 24, 2004, a magnitude 6.3 earthquake shook Al Hoceima province on the Mediterranean coast (about 400 kilometers northeast of the capital Rabat), killing 628 people and causing major damage.