When a substance burns, there is a very rapid chemical reaction with oxygen in the air. This reaction generates heat and light, producing a flame. There are other forms of burning too. Some metals burn in corrosive gases, for example. Explosions are a form of burning in which the reaction takes place extremely rapidly, releasing very large amounts of heat.

Picture credit: google