An SUV crashed into a gas pump in the Oxon Hill area, sparking a fire and leaving the driver trapped. The incident could have turned fatal, a fire official said. But Prince George’s County police officers arrived in time to put the blaze out, and firefighters soon removed the driver from the car with injuries not believed to be life-threatening, the official said.

“Putting out that fire probably had a marked difference in saving this guy’s life,” said Mark Brady, a spokesman for the Prince George’s County Fire/EMS Department. “Apparently there was enough damage to the vehicle that prevented him from getting out.”

The incident began about 12:30 a.m., Brady said, when an SUV left the roadway and crashed into a pump at a gas station in the 6100 block of Oxon Hill Road. Brady said the SUV caught fire, and the driver — he was unsure whether it was a man or a woman — was trapped in the wreckage.

Prince George’s County police officers arrived on the scene first and put out the blaze, then firefighters extricated the driver, Brady said. He said the driver was taken to a nearby hospital.

It is unclear why the SUV left the roadway. Brady said he was still researching that and other details of the incident.