A teenager has died and two others are in hospital after an incident on the railway line in Wrenthorpe.
A 15-year-old boy is believed to have climbed on to a freight train and come into contact with overhead power lines at Wrenthorpe Sidings, Wakefield, at around 6.40pm (Saturday).
He was treated by paramedics, but pronounced dead at the scene.
A 16-year-old boy and an 18-year-old girl, who were with the boy at the time, have been taken to Pinderfields Hospital.
The extent of their injuries is unknown, but not thought to be life-threatening.
"His death is not being treated as suspicious.
Rail services were disrupted while emergency services worked at the scene.
Firefighters from Wakefield attended the incident, along with Cleckheaton's Technical Resuce Unit.
Mike Ferries, watch commander at Wakefield Fire Station, said: "On behalf of the emergency services, we offer condolences to the family.
"Railways are extremely dangerous areas and the parents of children of all ages should teach them about the dangerous of trespassing on railway property.
Crews left the scene at around 11pm.
Bradford Road, Wrenthorpe, remains closed.