Spanish authorities say that 51 people have died after flash floods swept away cars, turned village streets into rivers and disrupted rail lines and major roads.

Emergency services in the eastern region of Valencia confirmed the death toll.

Rainstorms on Tuesday caused flooding in a wide swath of southern and eastern Spain.

People walk through flooded streets in Valencia (Alberto Saiz/AP)

A high-speed train with nearly 300 people on board derailed near Malaga, although rail authorities said no-one was hurt.

High-speed train service between Valencia city and Madrid was interrupted, as were several commuter lines.

Floods of mud-coloured water tumbled vehicles down streets at frightening speeds. Pieces of wood swirled with household articles.

Police and rescue services used helicopters to lift people from their homes and cars.

A man walks on a flooded motorway in Valencia (Alberto Saiz/AP)

More than 1,000 soldiers from Spain’s emergency response units were deployed to the devastated areas.

Spain’s central government set up a crisis committee to help co-ordinate rescue efforts.

Storms were forecast to continue through Thursday, according to Spain’s national weather service.

Spain has experienced similar autumn storms in recent years. It is still recovering from a severe drought earlier this year.

Scientists say increased episodes of extreme weather are likely linked to climate change.