Mr Pena Nieto said he had made a commitment to help 300 artisans who had stalls at the San Pablito fireworks market and had lost their livelihoods.
The disaster in the city of Tultepec has killed 35 people and injured another 70.
The market has been burned to the ground three times in the past decade.
"We made a commitment to support everyone, the 300 stall owners of that market to recover and support them so that they can continue their activities next year normally," said Mr Pena Nieto during a visit to survivors in hospital.
The cause of Tuesday's explosions is yet not clear.
Most of the 35 people killed are so badly burned their bodies will have to be identified using DNA testing.
Some of the victims were taken to a specialised hospital in the US city of Galveston, Texas.
Video from the scene showed a large number of fireworks rocketing into the air as they caught fire.
Fireworks continued to explode after the initial blast, as smoke billowed from the area in thick black clouds.
The market had contained up to 300 tonnes of fireworks, Mexican media reported.
The economy of Tultepec relies heavily on the pyrotechnics industry. The city lies north of the capital Mexico City.
The authorities promised to "defend the livelihoods" of the people who worked at the market and support them until it is rebuilt.
"The artisans are not alone," said Mexico state Governor Eruviel Avila.

Media playback is unsupported on your device
12 July 2015 Last updated at 01:20 BST
The BBC's Mohamed Madi went to Soho's Greek Street to find out.
Produced by Marcus Thompson.

The US singer complained the virtual assistant was pronouncing her surname wrong.
"I called the head of Apple, Tim Cook, and he delightfully agreed to have Siri change the pronunciation of my name, finally," she said on Weekend Edition.
Streisand said the second syllable of her name should be pronounced with "a soft S, like sand on the beach".
Siri currently pronounces the singer's name as "StreiZAND". The next Apple update is due on 30 September.
"So let's see if that happens, because I will be thrilled," Streisand told the US show on Saturday.
The singer is currently on tour for her new album, Encore: Movie Partners Sing Broadway.
In 2014, Streisand created US chart history by becoming the first artist to score number one albums in each of the last six decades.
She is one of just a few to have won all four major US entertainment awards - an Oscar, Emmy, Grammy and an honorary Tony.
Streisand has also enjoyed an illustrious film career which began with 1968's Funny Girl, for which she won an Oscar.
Her other films include The Way We Were, What's Up, Doc? and the Meet the Parents sequel, Meet the Fockers.
Follow us on Twitter @BBCNewsEnts, on Instagram, or if you have a story suggestion email entertainment.news@bbc.co.uk.
Mexico's President Enrique Pena Nieto has promised to rebuild an open-air fireworks market destroyed by a series of huge explosions on Tuesday.
[NEXT_CONCEPT]
How has the economic crisis affected Greeks living in London?
[NEXT_CONCEPT]
A tweak to Siri's pronunciation of Barbra Streisand's name will be heading to Apple products soon.