# What part does methane play in the process of producing biogas?

I should point out first that I don't know the first thing about environmental science, I study mathematics, and the reason I am asking this question is because I want to understand the processes behind climate change better. And, after hearing that methane is such a powerful greenhouse gas, it sounded weird to me that it was also produced during the process of producing biogas, so I basically want to understand how that process works and why the production of methane in it isn't harmful.

• Not an expert but I think methane is the biogas, and it's being burnt to produce heat/electricity, so it doesn't go into the atmosphere where it could have greenhouse effect. – Jean-Marie Prival Nov 2 '20 at 13:33
• @Jean-MariePrival Ok, thank you! – Nerey Nov 5 '20 at 20:08

As Jean-Marie Prival commented, methane is the biogas (after removing impurites such as $$H_2S$$ and $$CO_2$$).