Michael Lewis 58, and Gareth Delbridge 64 were struck by a Great Western Railway train near Port Talbot in South Wales on Wednesday because they did not hear the train coming.
Reports reveal that the two railway workers were working on the lines at the time when the train came crashing.
Police have confirmed that the two had worn hearing protectors which are known for protecting the ear from high noise and other harsh environmental conditions.
“The initial stages of the investigation suggest that the two men who died had been wearing ear defenders at the time and tragically they could not hear the passenger train approaching,” said Superintendent Andy Morgan.
The train was travelling between Swansea and Cardiff. When the Welsh Ambulance Service Paramedics arrived there it was too late as they were not able to save the men.
One person has also been treated for shock at the scene.
“We have a number of officers who remain in the area and we are continuing to work alongside the Rail Accident Investigation Branch to understand the full circumstances of what happened in the moments before this incredibly sad, fatal collision,” Superintendent Morgan said.