At least 77 people have died and more than 100 have been injured in a train crash in northwest Spain.

All eight carriages of the train were derailed near the city of Santiago de Compostela in the Galicia region.

The train was travelling from Madrid to the coastal town of Ferrol when the accident occurred.

Spanish newspaper El Pais cited sources close to the investigation as saying the train was travelling at over twice the speed limit on a sharp curve, according to BBC reports.

The crash is believed to be the worst rail accident in Spain in four decades.

Rail firm Renfe said the train was carrying at least 218 passengers, and came off the tracks on a bend about two miles from Santiago de Compostela station.

The derailment happened on the eve of Santiago de Compostela’s main festival, a time when thousands of Christian pilgrims are expected to arrive in the city.

The city’s tourism board said all festivities planned for today have been cancelled.