A cop in Northern California jumped into action this week when she realized a man in a wheelchair was trapped on railroad tracks as a speeding train traveled in his direction. The entire incident was captured on video via the officer's bodycam and has since gone viral.

TMZ reported that Lodi Police Department officer Erika Urrea was out patrolling the area on Wednesday morning when she saw a 66-year-old man stuck in the middle of the crossing.

In a video of Urrea’s bodycam footage, the officer can be seen exiting her cruiser and running towards the man as she alerts the dispatcher about the situation.

With only seconds to spare, Urrea does her best to pull the man out of his trapped wheelchair. They then both fall to the ground as the train hits the bottom of the man’s legs.

The Lodi News reported that Urrea declined to comment on the matter. Meanwhile, Sgt. Steve Maynard of the Lodi Police Department revealed that the rescued man was treated for severe injuries at an area hospital after his legs were struck by the train. At the time, he was listed as being in critical but stable condition.

“A northbound train was traveling pretty fast, and she rushed over to get him unstuck,” Maynard said in a statement. “She only had a few seconds, and for some reason, she couldn’t get the chair loose, so she grabbed hold of him and hauled him from the chair.”

This isn’t the first time officer Urrea has been praised as a hero. On Aug. 4, she saved a life by performing CPR on a 62-year-old man after he crashed into the rear of a bus while cycling.

a train A train is pictured in Austria. Photo: AFP/GRODER