It often results when bacteria break down organic matter in the absence of oxygen . This happens in swamps , and sewers ( alongside the process of anaerobic digestion ) . It often results from the bacterial breakdown of organic matter in the absence of oxygen , such as in swamps and sewers ( anaerobic digestion ) .