The invention discloses an ahypnia headache medicine and a preparation method of the medicine, and relates to a medicine for treating an ahypnia headache and a preparation method of the medicine. Themedicine solves the technical problems that the existing method for treating the post-ahypnia headache has a non-ideal medication effect, and especially, a western medicine has side effects of hypersomnia, dizziness and digestive disorders after long-term administration. The medicine comprises radix rehmanniae recen, Chinese angelica, spina date seeds, semen platycladi, polygala roots, rhizoma acori graminei, ligusticum wallichii and radix paeoniae alba. The preparation method comprises the steps of mixing the ligusticum wallichii, the spina date seeds, the Chinese angelica, the rhizoma acorigraminei, the semen platycladi and water for distillation and extraction, preparing a beta cyclodextrin inclusion compound, mixing and decocting decoction dreg after distillation with the radix rehmanniae recen, the radix paeoniae alba and the polygala roots, mixing a residual aqueous solution after the distillation with filtrate, performing pressure reduction concentration, standing, cooling to aroom temperature, adding ethanol, performing uniform mixing, refrigeration, filtration, pressure reduction, drying and grinding, and adding the beta cyclodextrin inclusion compound. The medicine hasan effective rate of 94.30% for treating the post-ahypnia headache, the hypersomnia, the dizziness and the digestive disorders do not occur, and a recurrence rate is less than 26%.