It took eight fire engines to extinguish the blaze, as more than 40 people were rescued and taken to nearby hospitals.