A massive explosion took place at the factory around 9.45 am, which caused the entire RCC slab of the factory to collapse, Collector Mihir Patel said.