Once the waste is crushed into very small pieces, it is buried, but without oxygen, a dangerous gas called methane is created. This process is called anaerobic digestion. In some countries, the methane from landfills is used to generate energy.