TEHRAN, Iran (AP) — A powerful 7.3 magnitude earthquake that struck the Iraq-Iran border region killed over 340 people across both countries, sent people fleeing their homes into the night and was felt as far away as the Mediterranean coast, authorities reported on Monday.

Iran’s western Kermanshah province bore the brunt of the temblor, with Iran’s state-run news agency reporting the quake killed 341 people in the country and injured 5,953. The area is a rural, mountainous region where residents rely mainly on farming to make a living.

In Iraq, the earthquake killed at least seven people and injured 535 there, all in the country’s northern, semiautonomous Kurdish region, according to Iraq’s Interior Ministry.

The magnitude 7.3 quake was centered 19 miles (31 kilometers) outside the eastern Iraqi city of Halabja, according to the most recent measurements from the U.S. Geological Survey.

The earthquake struck 23.2 kilometers (14.4 miles) below the surface, a shallow depth that can have broader damage. Magnitude 7 earthquakes on their own are capable of widespread, heavy damage.

Iranian social media and news agencies showed images and videos of people fleeing their homes into the night. More than 100 aftershocks followed.