Anaerobic digestion is a complicated biochemical process. Based on temperature and input substrate, different strains of bacteria digest complex chains of carbohydrates, fats, and proteins into their component parts, then again into intermediate, simpler molecules, and eventually into a biogas which is rich in methane and can be burned as fuel in the place of natural gas.