Biogas is produced from the anaerobic digestion of organic matter by microorganisms. It is primarily composed of methane (CH4) and carbon dioxide (CO2). Methane is the combustible component and typically makes up 50-75% of biogas volume, while carbon dioxide makes up 25-50%. Trace amounts of other gases like hydrogen sulfide, nitrogen, and hydrogen may also be present.