The invention discloses a fermentation technology of anti-senile dementia pharmaceutical ingredient huperzine. Acremonium rndophytium of which the preservation number is CCTCC M206118 serves as a production strain. In the fermentation process, the fermentation yield of the huperzine can be improved by 12.5 to 18.7 percent by adding a precursor, namely 2-methylene-1,3-propylene glycol diacetate. The formula of a seed medium comprises the following components in percentage by weight: 2 percent of corn flour, 2 percent of glucose, 0.8 percent of corn steep liquor, 1 percent of yeast powder, 1.65 percent of bean cake powder, 0.2 percent of KH2PO4, 0.05 percent of MgSO4.7H2O and 0.35 percent of CaCO3. The formula of a fermentation medium comprises the following components in percentage by weight: 4 percent of corn flour, 2 percent of maltose, 2 percent of corn starch, 1.2 percent of yeast powder, 0.6 percent of corn steep liquor, 1.55 percent of bean cake powder, 0.1 percent of KH2PO4, 0.06 percent of MgSO4.7H2O, 0.05 percent of NaCl and 0.4 percent of CaCO3.