Updated

A California police officer came to the rescue of a man in a wheelchair who was stuck on railroad tracks – pulling him to safety mere moments before a train passed through, a harrowing police video shows.

Lodi Police Officer Erika Urrea was in the area of the train tracks around 8:45 a.m. on Wednesday when she spotted the man, who appeared to be stuck, as the railroad alert systems blared and the crossing arm was lowered, police said.

SALT LAKE CITY PD SUSPENDS OFFICER AFTER K9 BITES MAN WHO SAYS HE WAS COMPLYING WITH ORDERS

Urrea’s body-worn camera footage shows her pulling up to see the 66-year-old man and quickly getting out of the car – running to him as she asks, “Can you get up?”

NEW JERSEY STATE POLICE RESCUE 65-YEAR-OLD DRIVER TRAPPED DURING FLASH FLOOD, BODYCAM VIDEO SHOWS

The train’s horn can be heard in the background as the sound gets closer and closer. Urrea is able to pull the man from the wheelchair and just barely off the tracks moments before the train barrels through, video shows.

Police said the man was taken to a local hospital for a leg injury but was otherwise OK.

CLICK HERE TO GET THE FOX NEWS APP

"Officer Urrea risked her own life to save another and her actions prevented a tragedy today," the police department said in a Facebook post. "We are extremely proud of Officer Erika Urrea and her heroism."