When a substance burns. More precisely, a chemical reaction, typically quickly, and at high temperature, where a substance transforms into a more basic and inert form, releasing stored energy in the process.