Twenty-seven people have been injured, two of them seriously, after a train travelling between Málaga and Seville derailed near the town of Arahal, emergency services in Andalusia and the regional government confirmed on Wednesday morning.

Images posted by passengers on Twitter showed at least one carriage had derailed but not turned over. The images showed the track near the site of the accident in disrepair due to heavy rain and mud.

The train was covering the medium distance 13901 service between Málaga and Seville, Spanish rail operator Renfe confirmed.

Arahal, a town of 19,500...