Landfill gas is produced through the anaerobic decomposition of organic waste in landfills. It consists primarily of methane and carbon dioxide. The production of landfill gas depends on factors like the type and moisture of waste, temperature, pH levels, and the exclusion of oxygen. Landfill gas can be harvested and used to generate electricity but must be treated to remove contaminants first. While a source of renewable energy, uncaptured landfill gas is a potent greenhouse gas, so its proper collection and use provides environmental benefits.