WEST ISLIP, N.Y. (CBSNeWYork) — A driver has been charged with DWI following a fiery car crash on Long Island.

There were three people inside the red Ford when the driver, who police said was drunk, crashed into a wall in front of a home on on Edmore Lane in West Islip.

READ MORE: 20th Annual Tunnel To Towers 5K Run And Walk Kicks Off From Brooklyn To Manhattan

The driver was able to get out of the vehicle without any injuries, but the two passengers were still inside when the car burst into flames, WCBS 880’s Sophia Hall reported.

“When our officers responded the entire front of the car was aflame and the fire was intruding into the passenger compartment,” said Suffolk County Police Chief of Department Stuart Cameron.

READ MORE: Vaccine Mandate For NYC Teachers, Department Of Education Workers Put On Hold By Federal Judge

Police officers, firefighters and good Samaritans sprang into action to rescue the passengers.

“Without their heroic actions these two individuals would’ve burned to death,” Cameron said.

Officers involved in the rescue were treated for smoke inhalation.

MORE NEWS: New York Weather: CBS2’s 9/26 Sunday Morning Forecast

The two passengers in the vehicle suffered serious injuries.