The mob made things worse by putting things in the way of the fire engines called to put the blaze out in the largest city in Gujarat, Ahmedabad.
The Hindus may have been trying to get revenge for a train fire on Wednesday, where Muslims were blamed for the deaths of 58 Hindu people, including 14 children.
Fighting over a mosque
Hindus and Muslims are fighting over a mosque which was torn down by Hindus in 1992, sparking riots which killed more than 2,000 people in India.
The Hindus believe that one of the most important gods in their religion was born on this site, which is why they want to build a temple there, even though the government has said they can't.