Forbes:

At a high temperature and pressure, gasification converts coal, or other carbon fuels, into synthesis gas that is either burned in a turbine to produce electricity… or turned into other products, like diesel oil, fertilizer and pipeline-quality natural gas. In most cases pollutants such as sulfur and mercury are stripped out after the fuel gas has been synthesized.