The breakdown of organic material by micro-organisms in the absence of oxygen. This process is used to generate biogas (a mixture of methane and carbon dioxide), used as a replacement for natural gas, fossil fuel replacement for electricity and heat generation.