When material is heated enough, it begins to break down into smaller compounds, including flammable or even explosive gas, typically hydrocarbons. This is called pyrolysis, and does not require oxygen. If oxygen is also provided, then the hydrocarbons can combust, starting a fire.