Police in Barcelona said they were advised by security personnel in the city's main Sants station that “they had seen by scan an object that could be an explosive artefact,” a spokesman told AFP.
Most Spanish stations require passengers boarding trains to put their luggage through scanners.
A photo of the luggage scan posted on the Twitter feed of Catalonia's Mossos police force showed what looked clearly like a grenade.
Aquesta és la imatge d'escàner on es pot veure l'objecte sospitós que aquest matí ha obligat a posar en marxa el dispositiu policial a l'estació de Sants pic.twitter.com/I4CabdtCx8
— Mossos (@mossos) November 7, 2018
Police subsequently evacuated two high-speed trains at the Barcelona station but didn't find anything, the spokesman said.
“Then we saw that this person could be in a train going to Madrid. We warned national police,” he added.
In the Spanish capital, police said they created a security zone on part of a platform at Atocha station, which was the scene of one of Europe's worst terror attacks in 2004 when 191 people were killed in explosions on commuter trains.
When the train arrived, they checked the luggage and found that the grenade-like object was actually a “belt buckle,” a police spokeswoman said.
Éste ha sido el objeto con forma de granada encontrado en la estación de tren de Barcelona-Sants y que ha hecho activar también los protocolos de seguridad en Atocha. Era una falsa alarma y a esta hora se empieza a recuperar la normalidad. @24h_tve @telediario_tve pic.twitter.com/BJeiTRFwbr
— María Relaño (@mariarelano) November 7, 2018
It is unclear why security personnel in Barcelona let the passenger get onto the train if they were worried about the potential grenade.
Adif, Spain's state company that manages stations and rail infrastructure, told AFP they were looking into the incident.