Garbage contains vegetable peels, manure and plant material. These biomass can be fermented to generate electricity. Also the waste material that is present in the water, can be acted upon by the microbes to generate electricity. The waste metals and metallic items etc. that are present in the waste can be separated and used to generate electricity.