An official with Spain's National Police said the alert was ended after agents in Madrid confirmed that the suspicious object in the suitcase of a female passenger who had traveled on a high-speed train from Barcelona didn't pose any danger.
The official was not authorized to be named in media reports.
"Everything returns to normal," said the National Police in a brief tweet explaining that disruptions in the long-distance and commuter train stations in the Spanish capital had been due to the false alarm.
The search in the capital followed police searching high-speed trains and railway tracks in the country's second largest city, Barcelona, after the central Sants station's security scanner identified an object shaped like a possible explosive device inside a suitcase.
According to the police in the Catalonia region which tweeted an image of the scanned suitcase, the object turned out to be a belt buckle.
Spain's railway infrastructure managing company, ADIF, which handles security in train stations, didn't immediately respond to questions about why the suspicious case was allowed onto the train.
An AP reporter at the scene in Barcelona saw long queues of passengers waiting for rail traffic to resume.
A homegrown extremist cell killed 16 people in August last year in Barcelona and a nearby coastal resort in consecutive vehicle and knife attacks that were later claimed by the Islamic State group.
Please click to read our informative text prepared pursuant to the Law on the Protection of Personal Data No. 6698 and to get information about the cookies used on our website in accordance with the relevant legislation.
6698 sayılı Kişisel Verilerin Korunması Kanunu uyarınca hazırlanmış aydınlatma metnimizi okumak ve sitemizde ilgili mevzuata uygun olarak kullanılan çerezlerle ilgili bilgi almak için lütfen tıklayınız.