The gas is led in a controlled flow to a vertical reactor shaft with a circulating fluidized bed containing dispersed calcined limestone. The biomass is pyrolyzed by means of the reactor heat in order to produce tarry gas and charcoal. While the gas flows upward in the reactor shaft the tar is gasified in a heterogeneous catalytic reaction with limestone. Charcoal and limestone are separated from the gas at the top of the reactor shaft and brought back to the fluidized bed for combustion. (L.F.).