Iran's western Kermanshah province bore the brunt of the temblor Sunday night, with authorities saying the quake killed 407 people in the country and injured 6,700. Kermanshah is a rural, mountainous region where residents rely mainly on farming.
In Iraq, the earthquake killed at least seven people and injured 535, all in the country's northern Kurdish region, according to Iraq's Interior Ministry.
The quake was centred 31 kilometres outside the eastern Iraqi city of Halabja, according to the most recent measurements from the US Geological Survey. It struck at 9:48 pm Iran time, just as people began retiring for the night. It could be felt on the Mediterranean coast, some 1,000 kilometres away.
The earthquake struck 23.2 kilometres below the surface, a shallow depth that can amplify damage. Magnitude 7 earthquakes can be highly destructive.
Iranian social media and news agencies showed images and videos of people fleeing their homes. More than 100 aftershocks followed.
READ MORE