Chief Minister Oommen Chandy and state Home Minister Ramesh Chennithala took the Prime minister around the temple precincts and briefed him on the incident.
Modi went around the accident site littered with debris of the two buildings, including the 'Kambapura', storehouse where the crackers and fireworks display materials had been stocked, that were completely razed to the ground in the explosion.
The Prime Minister, who spent around 10 minutes at the spot, also saw the concrete bars, twisted wires and cables.
Chandy informed him that government had already taken steps in this regard.
Chennithala said the PM also enquired about the compensation to be given to those affected.
The Prime Minister later visited the Kollam district hospital to see the injured people.