Two people were seriously hurt Thursday morning when a NJ Transit train collided with a car on the tracks in Bergen County, authorities said.

The crash occurred about 7:30 a.m. at the Main Street crossing in River Edge, according to Lisa Torbic, spokeswoman for NJ Transit.

Two people in the car were trapped after the crash and had to be extricated, Torbic said.

They were taken to Hackensack University Medical Center “significant injuries” but were expected to survive, the spokeswoman said.

Torbic said 400 customers and crew on the train were not hurt.

An investigation was underway Thursday to find out why the car was on the tracks, Torbic said.

The train involved in the crash was the Pascack Valley 1610, which had left Spring Valley scheduled to arrive in Hoboken at 8:05 a.m. The crash suspended service on the tracks in both directions.

NJ Transit buses and private bus carriers are honoring NJ Transit tickets until the tracks reopen, Torbic said.

Anthony G. Attrino may be reached at tattrino@njadvancemedia.com. Follow him on Twitter @TonyAttrino. Find NJ.com on Facebook.

Get the latest updates right in your inbox. Subscribe to NJ.com’s newsletters.