This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

A firework exploded inside a vehicle in Anaheim, setting the car on fire early Tuesday, police said.

Officers and firefighters responded after receiving a report of a vehicle fire in the 2400 block of West Ball Road overnight, according to the Anaheim Police Department.

Personnel arrived at the scene and found the car fully engulfed in flames, with fireworks going off inside, police said.

Firefighters were able to extinguish the flames, but the car appeared to be a total loss, photos from the scene showed.

Investigators said the blaze was sparked by an illegal firework that went off while the car’s owner was driving, and that the flames subsequently caused the other fireworks to explode.

The driver pulled over after the initial explosion, and both he and the passenger managed to make it out of the vehicle unharmed, according to officials.

No further information was immediately provided about the incident.