GRANADA, SPAIN (AFP)

Spain's cherished tourist hotspot of Granada was in shock on Saturday after a rare 5.0-magnitude earthquake woke residents in the middle of the night and damaged buildings.

The tremor took place shortly after 1:00 am with its epicentre in the town of Alhendin, 10 kilometres south of Granada, according to the National Geographical Institute.

"Cracks have appeared, elements such as ledges, rubble and walls have fallen and damage has been reported in some buildings," Andalusian emergency services said in a statement.

The fire service received 300 calls and performed 85 interventions, especially in southern Granada and the city's metropolitan area, said Antonio Sanz, the Andalusia region's top emergencies official.

"There is no serious structural damage, no serious material damage and there are no casualties," said Sanz, who specified that "the Alhambra had not been affected in any way."

But "we must stay on our guard" as buildings were being inspected and aftershocks were possible, Sanz added, noting that the last earthquake of this magnitude in Andalusia hit in 1955.

An AFP journalist in Granada saw a pile of broken tiles that had fallen from a church's roof, with tourists stopping to take photos of the cordoned-off site.

Images shared by Spanish media showed rubble strewn on the streets and cars with their windows smashed.