A huge explosion has ripped through Mexico's best-known fireworks market, reportedly killing at least 31 people and injuring more than 70.

Video uploaded to social media showed fireworks exploding as a massive plume of smoke billowed into the sky above the open-air San Pablito Market in Tultepec, north of Mexico City.

Drone footage shared in the aftermath of the explosion showed smoke rising from scorched firework stalls.

Mexico State chief prosecutor Alejandro Gomez said the death toll rose to 31, after several people died at local hospitals.

Luis Felipe Puente, head of national emergency services, said at least 70 were injured and the number could rise.

He also said some nearby homes had also been damaged.

Mr Puente urged people not to come within three miles (five kilometers) to avoid danger.

Firefighters and rescue workers remove debris from the scorched ground of Mexico's fireworks market in Tultepec (AP)

He said there was no choice but to let any unexploded fireworks burn off.

Authorities have not yet said what may have caused the explosions.

Mexico firework accident Show all 10 1 /10 Mexico firework accident Mexico firework accident Relatives grieve by the corpse of victim of a blast in a fireworks market, flattened by a huge blast that killed at least 26 and injured dozens, who lies on the ground in Mexico City Getty Mexico firework accident Firefighters and volunteers work amid the smouldering debris left by a blast in a fireworks market killing at least 26 and injuring dozens, in Mexico City Getty Mexico firework accident A boy takes his helmet off as he pauses while working at the scorched ground of the open-air San Pablito fireworks market, in Tultepec, outskirts of Mexico City, Mexico AP Mexico firework accident People look at a burnt car after an explosion at the San Pablito fireworks market outside the Mexican capital on Tuesday, in Tultepec, Mexico Reuters Mexico firework accident A man walks through the scorched ground of the open-air San Pablito fireworks market, in Tultepec, outskirts of Mexico City, Mexico AP Mexico firework accident A firefighter takes a rest amid the smouldering ruins left by a blast in a fireworks market that killed at least 26 and injured dozens, in Mexico City Getty Mexico firework accident People remain amid the debris left by a huge blast that occured in a fireworks market in Mexico City Getty Mexico firework accident View of the utter destruction caused by a huge blast in a fireworks market in Mexico City, killing at least nine people and injuring 70, according to police Getty Mexico firework accident People search amid the debris left by a huge blast that occured in a fireworks market in Mexico City Getty Mexico firework accident Survivors search amid the ruins left by a huge blast that occured in a fireworks market in Mexico City Getty

The Mexican Red Cross said it sent 10 ambulances with 50 paramedics to the market, where emergency crews attended to victims and hosed down smoldering hotspots as fireworks continued to pop off.

In 2005, a fire engulfed the same market, setting off a chain of explosions that levelled hundreds of stalls just ahead of Mexico's Independence Day.

A similar fire at the San Pablito Market also destroyed hundreds of stands in September 2006.