A 21-year-old youth died from electrocution after climbing onto the roof of a train in Andújar station, Jaén province.
A group of youths climbed onto the roof of the train to take photos and one of them, a resident of the village of Vegas de Triana, came into contact with the overhead cables and was electrocuted.
The mayor of Andújar has declared three days of official mourning for the victim.