Burning coal produces sulphur dioxide, an acidic gas that contributes to the formation of acid rain. This can be largely avoided using "flue gas desulphurisation" to clean up the gases before they are released into the atmosphere. This method uses limestone, and produces gypsum for the building industry as a by-product. However, it uses a lot of limestone.