The crossing gates were down, lights were flashing and warning bells were chiming. A train was coming and a crying woman was sitting on the tracks in Richmond, Texas, over the weekend in the early morning hours.

That’s when a Richmond Police Department officer reached the scene just in time and rushed in to remove the woman.

All caught on the dashboard camera of his police cruiser, Officer Ramon Morales dragged the still crying woman out of harm’s way. Only a couple of seconds after pulling the woman from the tracks and toward his car, the train rushed by.

Image source: KTRK-TV

Image source: KTRK-TV

Image source: KTRK-TV

Image source: KTRK-TV

“The second he pulled up, the crossing arms of the train tracks started going down and without regard for his own life he immediately went into action,” Master Sgt. Lowell Neinast, a spokesman for the police department, told KTRK-TV.

Watch KTRK’s report to see Morales in action:

According to an update on Facebook from the police department, Morales had to keep the woman from standing up and running back toward the train.

Neinast called Morales, a former U.S. Marine who has been with the department for 10 months, “a hero.” He also called the person who flagged Morales down a hero as well.

“They took the time to save somebody’s life without even thinking about it,” Neinast told KTRK.

The woman, who was not identified, was taken to a local hospital for evaluation after the incident, which occurred just after 1 a.m. Sunday.