Torrential rains swept across eastern Spain, causing floods that have killed at least two people and that which prompted authorities to issue shelter-in-place orders for more than 800,000 residents.

The downpour from Storm Adam cut off several towns along the Mediterranean coast as rivers burst their banks and streets turned into torrents, leaving scenes reminiscent of the catastrophic flooding that killed more than 230 people in the Valencia region two years ago.

Residents of the town of Els Poblets woke on Monday to muddied roads and cars washed down by the river.

In Els Poblets, neighbours helped clean the streets filled with mud, bringing out furniture soaked by water that flooded the ground floors of their homes. 

According to local officials, the bodies of two women who had drowned were found over the weekend. One of the bodies was washed up on a beach in Sagunto, Valencia, while the other woman died after being swept away by floodwaters in Cabrera de Mar, near Barcelona.

Meteorologists say human-driven climate change makes such extreme weather events more frequent and destructive.