A dramatic scene played out recently at a Ukrainian railroad crossing.

The dashboard camera footage, reportedly recorded in Boyarka, shows a motorist trapped between the lowered gates as flashing lights warned of an approaching train.

At the last moment, a man rushes to open a gate and the SUV is able to move to safety just as the locomotive rushes past the crossing.