The present invention provides a method for extracting cannabidiol, and belongs to the technical field of industrial extraction. The method comprises the following operation steps of drying the flowers and leaves of a mariguana plant, grinding and crushing, performing reverse extracting on the crushed coarse powder and a solvent in a reverse extracting device along the opposite directions, and enabling the solvent to extract the effective components of the coarse powder out of an extracting solution; performing pressure-relief heating on the extracting solution, and volatilizing the excessiveethanol in the extracting solution, so as to obtain a concentrated solution of cannabidiol; adding purified water into the concentrated solution of cannabidiol, diluting, eluting by a chromatography column in a gradient way, and collecting a target eluting solution; combining the target eluting solution, and performing pressure-relief concentrating at the temperature of 50 to 70 DEG C, so as to obtain a secondary concentrated solution of cannabidiol; adding 90%w/w ethanol over-saturated solution into the secondary concentrated solution of cannabidiol, obtaining a crystallized product, washingby the purified water, and drying, so as to obtain a cannabidiol product. The method has the advantages that the method can be applied to large-scale continuous production; the working is continuous without interruption; the output is high; the energy source is saved; the safety and reliability are realized.