WYANDANCH , NY (CBSNewYork) — Officials are trying to figure out what caused a freight train to derail near Wyandanch late Thursday night.

CHECK: Traffic & Transit

READ MORE: De Blasio Says NYC Ready To Administer COVID Vaccine Booster Shots Once FDA Approved

The freight train came off the tracks around 11:15 p.m. just east of the Wynadanch train station, causing a fuel spill.

The MTA suspended service in both directions along the Ronkonkoma Branch of the Long Island Rail Road as crews worked throughout the night to clear the train in time for the morning rush.

READ MORE: Gabby Petito Search: Video Shows Couple Questioned About Physical Altercation In Utah, Fiancé Told Police Road Trip Created 'Emotional Strain'

WATCH: CBS 2’s Kathryn Brown reports

The derailment caused some delays early Friday morning, but by 7 a.m., the MTA was reporting good service for the Ronkonkoma Branch on its website.

MORE NEWS: Gov. Murphy Says New Jersey Is On Path To Universal Pre-K

No word yet on what caused the derailment.