Sludge is the solid organic waste collected below the tank during primary treatment. It is passed on to a separate tank and is decomposed by bacteria. On decomposition of sludge biogas is produced. This biogas is used as fuel or to generate electricity.