Emergency services in Spanish Catalonia wrote on X — formerly known as Twitter — that at least people have lost their lives and another three were injured after a group of seven people were hit by a train while crossing the railway line.
The incident took place in Montmelo about 20 kilometres (12 miles) north of Barcelona.
Spanish media said a music festival was held nearby on Sunday night, the eve of a holiday in Catalonia.
The regional firefighting force wrote on X: "We searched for other possible victims near the train. We did not find any others. We also helped evacuate the area and take the injured to ambulances."
Transport Minister Raquel Sanchez offered her condolences to the families of the victims and expressed her support on social media for the emergency services workers dealing "with this very difficult situation."
The head of the regional government of Catalonia, Pere Aragones, said he was "completely distraught" by the tragedy.
"Emergency services are continuing to work and offering support to the victims and their families. police are investigating the causes of the accident," he added.
In June 2010 an express train struck a group of people who were crossing the railway in the beach resort of Castelldefels, killing 12 people, according to AFP.
The people crossing the line on that occasion had just got off a commuter train and were crossing the track to get to the beach where a concert was being held to celebrate the summer solstice.
Some people complained at the time that an underpass exit was poorly marked and an old crossing was blocked off, leaving travellers confused.
Authorities aim to control visitor traffic with public transit system as site hosts 204,316 climbers in span of three...
Home ministry also orders all internet and mobile data services in Manipur to be shut off for two days
Biden-Xi talks come two months before Trump assumes office as he plans to hire hawkish voices on China in senior roles
Sam Graves says he would be honoured if asked to serve as DOT and would consider the position
US, UK media outlets reported a meeting between Iranian envoy to UN, Tesla CEO earlier this week
Prospect of Trump returning to power in US next year has raised questions about future of conflict