The invention provides application of a panaxadiol saponins fraction in preparing a medicine for preventing epilepsia. The component comprises the following main constituents: ginsenoside Rb1, ginsenoside Rb2, ginsenoside Rb3, ginsenoside Rc and ginsenoside Rd, and the medicine is prepared from active constituents in the single panaxadiol saponins fraction or from the active constituents in the single panaxadiol saponins fraction and other medicines. By taking one of five panaxadiol saponins: ginseng, American ginseng rhizome medicinal materials, ginseng stems and leaves, American ginseng stem and leaf medicinal materials and total extractives or total saponins of the ginseng, the American ginseng rhizome medicinal materials, the ginseng stems and leaves and American ginseng stem and leaf medicinal materials as a starting raw material independently or taking a mixture which consists of two or more than two different raw materials as the starting raw material comprehensively, the medicine is prepared by establishing the chromatographic separation and purification technology. According to the medicine prepared from the panaxadiol saponins fraction provided by the invention, an anti-epileptic effect can be greatly improved, and moreover, the toxic and side effects, especially dermatitis and intelligence toxicity, of traditional anti-epileptic medicines can be resisted, therefore, long-standing defects that the anti-epileptic medicines are not enough in curative effect and low in safety are overcome. The structural formula of the panaxadiol saponin is shown in specification.