If you heat up wood in a tin can it first refortifies, during this stage it burns using the oxygen that it contains. The second step is it pyrolizes, the molecules come apart and come off as fuel gas (pyrolysis oils). The pyrolysis oils are what we see burning above the wood. The third thing that happens to wood then is combustion, which is the oxidizing of the pyrolysis oils or burning of the vapors above the wood.