Abstract: The invention relates to a method for cooling and cleaning gases containing tar-like or other impurities, and to a reactor. In the method, process gas is first fed into a hot fluidized bed (4), where the tar-like impurities contained in it crack into smaller fractions, whereafter the process gas is passed onward, the fluidized bed material entrained in the process gas is separated from the process gas and returned through the cooler (8) into the fluidized bed and into the process gas stream, whereby the process gas cools under the influence of the cooled fluidized bed material. The reactor comprises a cooler (8) above the fluidized bed (4) and an annular conduit (7) outside the cooler (8), through which conduit the process gas flows into the upper portion of the reactor after the fluidized bed (4).