The invention relates to a preparation method of huperzine A, which is characterized by simple operation and little pollution and comprises the following processing steps: taking huperzine serrate dry coarse powder, adding 2-30 times amount of acid solution for ultrasonic extraction, with power of 100-2000W and extraction time of 10-30min, filtering extracts by anion exchange resins, extracting liquid medicines by chloroform, combining chloroform layers, recovering the chloroform at reduced pressure and concentrating the chloroform, adding the chloroform to a macroporous resin absorption column, using water for elution and impurity removal, using 50-90% of ethanol for elution, collecting eluent, recovering the ethanol at reduced pressure, adding acetone-chloroform for crystallization, washing and drying the crystal, thus obtaining the huperzine A. By adopting the invention to prepare the huperzine A, the product is high in purity and industrialization enlargement is easy to realize.