Madrid – A passenger train derailed on Friday in Spain's northwestern Galicia region, killing four people and injuring 47 others who were taken to hospitals, authorities said.The accident occurred at 09:30 in Porrino, about 450km northwest of Madrid, the Galician regional government said. Emergency personnel attend the scene after a passenger train travelling from Vigo to Porto, in neighbouring Portugal, derailed in O Porrino. (Lalo R Villar/AP) The train had three cars. The front one came completely off the track and smashed into an electricity pylon next to the line, crushing the engineer's cab and leaving the car leaning to one side. The back two cars were partly off the tracks. Emergency services dispatched doctors on helicopters to the scene.The train was carrying 63 passengers, the engineer and a ticket collector, state rail company Renfe said. The train left Vigo at 09:02 and was scheduled to arrive in Porto in neighbouring Portugal two hours later. It belonged to Portuguese rail company Comboios de Portugal.Adif railway infrastructure company said it has opened an investigation. The derailment occurred on a straight stretch close to Porrino station.