The invention relates to a method of using biogas slurry to treat continuous cropping obstacles of greenhouse soil, which includes: ridging greenhouse soil, preparing biogas slurry, mulching for flooding, retaining a greenhouse closed at high temperature, and turning the soil; mulching after ridging; using fresh biogas slurry to directly flood under the mulch of ridges; sun-drying for 2-4 days after biogas slurry flooding, recovering with the greenhouse plastic mulch, and retaining the closed greenhouse under natural conditions; and removing the mulch on the ridges after the closed greenhouseis retained under natural conditions, and applying base fertilizer and turning the soil when soil water content reaches 15-25%. By the method, soil continuous cropping obstacle factors can be eliminated, part of nutrients can be supplemented, multiple effects on overcoming continuous cropping obstacles of greenhouse soil, enhancing soil fertility, relieving soil acidification, promoting operational normality of biogas engineering and the like are achieved, and the method is highly operable and convenient in popularization and application.