A method for treating solid wastes comprising the steps of: h) Confining separately biomass wastes from plastic wastes; i) Burning the biomass wastes; j) producing steam by heat exchange through utilization of the heat produced by the burning biomass wastes; k) converting plastic wastes into synthesis gases through utilization of the heat coming from the burning chamber; I) introducing the said steam and synthesis gases to the flame of the biomass fuel such that there is an increase in temperature, thereby burning the biomass completely and produces high temperature gas products of combustion; m) treating the high temperature gas products with cold steam such that dioxin and furan formation is eliminated; n) allowing the treated gas products to undergo swirling cyclonic motion such that particulates and heavy gases are separated from lighter gases, whereby the lighter gases are discharged in the atmosphere and the particulates and heavy gases are recycled and retreated again.