By-products of coal combustion are compounds which are released into the atmosphere as a result of burning coal. Coal includes contaminants such as sulfur compounds and non-combustible minerals. When coal is burned, the minerals become ash (i.e. particulate matter or PM) and the sulfur forms sulfur dioxide (SO2). Since air is mostly nitrogen, combustion of coal often leads to production of nitrogen oxides. Sulfur dioxide and nitrogen oxides are primary causes of acid rain. For many years—before greenhouse gasses were widely understood to be a threat—it was thought that these by-products were the only drawback to using coal. These by-products are still a problem, but they have been greatly diminished in most advanced countries due to clean air regulations.