The Santiago de Compostela train crash took place on 24 July 2013, when a high-speed train travelling from Madrid to Ferrol in the north-west of Spain left its tracks at high speed on a curve, four kilometres outside Santiago de Compostela in Galicia. Of the 222 people onboard around 140 were injured and 78 were killed. The train's data recorder registered a driver's statement that the train was travelling at over twice the posted speed limit of 80km/h when it entered a bend in the line. The crash was Spain's worst rail disaster in nearly 70 years, since the Torre del Bierzo crash in 1944.

A demonstrator holds a sign with a black ribbon hanging from it in memory of the victims of the train crash in Santiago de Compostela. Photo: Reuters

The driver of a train that hurtled off the rails killing 78 people in Spain faced possible charges as doctors worked on Saturday to identify the last three victims of the country’s worst rail disaster in decades.

As Spain mourned, the city of Santiago de Compostela where the crash struck prepared a funeral for Monday in its cathedral, a destination for Catholic pilgrims from around the world.

They said late Friday that he refused to answer their questions in his hospital bed and the case has been passed to the courts.

The train was said to have been travelling at more than twice the speed limit when it hurtled off the rails and slammed into a concrete wall, with one carriage leaping up onto a siding.

Smoke billowed from the gutted cars as bodies were strewn across the tracks. Locals said they came running from their houses to drag passengers from the wreckage.

The grey-haired driver, who reportedly boasted of his love for speed online, was under police surveillance in hospital, said Jaime Iglesias, police chief in the northwestern Galicia region.

The driver faces criminal accusations including “recklessness”, Iglesias told a news conference, but has not yet been charged.

A police spokesman later told AFP that the driver had refused to respond to police questioning on Friday and the courts would now decide on judicial action.

Spanish media published photographs of the man they identified as Garzon after the crash, with blood covering the right side of his face.

Leading Spanish newspaper El Pais said the driver of the train had been unable to brake in time.

Seventy-eight passengers perished, three of whom have yet to be identified, and 178 were injured, regional authorities said.

Following the crash, weeping relatives waited in a conference centre in the city for news of their loved ones, attended by counsellors.

At least seven foreigners are among the dead -- a US citizen, an Algerian, a Mexican, a Brazilian, a Venezuelan, an Italian and a national of the Dominican Republic, a judicial source said.

Santiago de Compostela city hall said a French national was believed to be among the dead but this has not been confirmed.

Most of the injured are Spanish but at least eight were foreigners from Argentina, Britain, Colombia, the United States and Peru.

The number of people still in hospital dropped to 81, including 28 adults and three children who were in critical condition, Galician Health Minister Rocio Mosquera said on Friday.

The driver, while still trapped in his cab, told railway officials by radio that the train had taken the curve at 190 kilometres (118 miles) an hour, more than double the 80 kph speed limit on that section of track, El Pais said, citing unidentified sources in the investigation.

“I was going at 190! I hope no one died because it will weigh on my conscience,” he was quoted as saying.

He has reportedly been with state rail company Renfe for 30 years, including 13 years of experience as a driver.

Media reports described Garzon, one of two drivers on the train, as a speed freak who once posted a picture on his Facebook page of a train speedometer at 200 kph.

A caption read: “I am on the edge, I can’t go faster or else I will be fined.”

The Facebook page has since been taken down.

Secretary of state for transport Rafael Catala said the crash “seems to be linked to excessive speed” but that he was awaiting the findings of the judicial probe.

Renfe said the train -- a model able to adapt between high speed and normal tracks -- had no technical problems and had just passed an inspection on the morning of the accident.

Experts have raised questions about the track’s speed signalling system.

Since high-speed trains use the route, it has been equipped with an automatic speed control system known as the European Rail Traffic Management System (ERTMS), under which a train’s brakes can be automatically applied if speeding.

But the secretary general of Spain’s train drivers’ union, Juan Jesus Garcia Fraile, told public radio that the system was not in place at the crash site.

It was Spain’s deadliest rail accident since 1944 when hundreds were killed in a train collision, also between Madrid and Galicia. In 1972, 77 people died when a train derailed between Cadiz and Seville.

Many of the passengers in Wednesday’s crash were said to be on their way to a festival in honour of Saint James, the apostle who gave his name to Santiago de Compostela. Crowds of pilgrims travel to the town all year round to venerate him.