Two officers pulled a man from his car moments before a train struck the vehicle in Piscataway, according to police.
The Piscataway Police Department posted video of the rescue, showing officers rushing to save the man as crossing gates came down.
Police say the driver was impaired at the time.
No injuries were reported and there is no word on possible charges.