The invention relates to a method for simultaneously extracting alliin and garlic enzyme from garlic, which comprises: full ultrasonic cell wall breakage of mixture of peeled garlic and a polar organic solvent with the mass being at least four times of the mass of the garlic (pharmaceutically acceptable) and the volumetric water content less than or equal to 10 percent under the conditions with the pH being 5.5-6.8 and the temperature being less than or equal to 35 DEG C, solid-liquid separation, filtration and separation of supernatant by molecule ultrafiltration membranes with the molecular weight reducing gradually, wherein the molecular weight of the molecule ultrafiltration membrane at the last stage is 10,000 to 3,000, concentration of the filtrate by a nano filtration membrane, crystallization of the concentrated solution, separation to obtain crystals, and drying under conditions with the temperature less than or equal to 35 DEG C. The problem of reaction of the alliin and the garlic enzyme in cell wall breakage of the garlic can be solved effectively, and garlic extracts with the alliin content being 2.2-98 percent and the activity ratio of the garlic enzyme being 80-900 can be extracted and enriched, the losses of effective ingredients can be reduced, the yield and purity can be improved, the cost is low, the production requirements of cleanness and low energy consumption can be satisfied, and the method has a practical value in industrial applications.