The principle of biogas power generation is that the biogas is pumped out continuously through several gas wells vertically imunited into the garbage heap, and then sent to the generator set through the collection pipe network. After cooling, desulfurization, dehydration, filtration and purification, the pure biogas generated is burned in the generating set and then connected to the power grid.