A car plunged onto a railway line from a bridge, moments before a train smashed into it after the driver is suspected to have dozed off at the wheel.
The 31-year-old motorist managed to crawl out of the wreckage despite suffering multiple injuries.
But the train driver was unable to avoid crashing into the car on the tracks.
READ MORE: Blundering robbers bamboozled after finding casino door locked in failed Oceans 11-style heist
A shocked onlooker filmed the moment the locomotive smashed into the wreckage and dragged it along the tracks for several metres.
The operator applied the emergency brakes and brought the train to a stop next to the totalled car.
The crash took place in the town of Nova Era located north of Rio de Janeiro, Brazil, on Monday (17 Mar) morning,
According to reports, the driver fell asleep at the wheel and lost control on an overpass on the BR-381 highway.
His car crashed through the barrier and plunged to the tracks below.
The unnamed driver then received medical treatment at the scene.
He was taken to São José Hospital with a fractured collarbone and signs of mental confusion.
The cargo train belonged to the mining company Valle, as reported by Need To Know.
A company spokesperson said: “The train driver followed all safety procedures, sounding the horn, flashing the headlights, and applying the emergency brakes.
“But it was not possible to avoid impact.
“Emergency teams were immediately called to the scene, and the motorist – who was outside the vehicle at the time of the collision – was treated by paramedics.
“The train is still running.”
An investigation into the crash is ongoing.
READ MORE: Coach smashes into power pole and six vehicles after driver suffers epileptic seizure