Biogas is the result of treating organic matter in digesters or through other decomposing processes. The resulting gas consists mainly of methane and carbon dioxide.