How do methanogens help in producing biogas?

Certain bacteria like methanogens are commonly found in the anaerobic sludge during sewage treatment.Biogas is a mixture of gases produced by the microbial activities and which may be used as fuel.The type of the gas produced depends upon the microbes and the organic substrates they utilise.