The Guadalhorce valley was in mourning on Thursday after a three-year-old girl who had gone missing the previous evening was found dead.
The body of Lucía Vivar Hidalgo was discovered alongside the railway between Pizarra and Álora in the morning. An autopsy in the afternoon confirmed that she had died from a severe bang to the head and had no other injuries.
Lucía had disappeared from a bar in the old station building in Pizarra shortly after 11pm on Wednesday night. Witnesses said she had been playing in and outside the building, which had two doors, while her parents ate inside.
Her disappearance prompted a huge search involving 600 people and both the mayor of Pizarra and the Guardia Civil sent out pleas for help.
Efforts to find the toddler however proved fruitless until a driver on a train spotted something next to the track some three kilometres further up the line towards Álora.
It was not clear how Lucía had reached that point, however early investigations suggested that she may have wandered off and been hit by an early passing train.