Bacteria can decompose waste material anaerobically (in the absence of oxygen). When they do this, they produce biogas. Biogas is mainly methane and made in a biogas generator, a large pit designed to decompose animal and agricultural waste anaerobically. The gas produced is used to heat homes, cook or as a fuel for vehicles. This is a good strategy for agricultural communities in developing countries.