A sheriff's deputy pulled a man to safety just seconds before his car was struck by a train.
Incredible footage taken by a witness shows the deputy dragging the man from his car after it became lodged on train tracks in Sunnyvale, California on Monday evening.
Just seconds later, a horn from a Caltrain blares as the train barrels down the tracks. It strikes the man's empty car and forces it to spin off the tracks.
Officials say no one was hurt in the incident.
"If it had not been for the deputies being at the right place at the right time, the driver would have been significantly injured," said San Mateo County Sheriff's spokesman Salvador Zuno.
He said that deputies Lance Whitted and Erik Rueppel were in the area when they heard a crash and saw a vehicle had collided into the crossing guard at the tracks.
The duo ran to the scene. One was able to notify the incoming train as the other pulled the man to safety.
"I believe because of their actions this person is alive today." Zuno said.
The department is investigating the incident.
Service in the area has now been restored.
Watch Below: Cop Rescues Baby Skunk Running in Circles with Head Stuck in Container