The invention discloses a compound separated from colletotrichum gloesporioides and a preparation method and application thereof. The molecular formula of the compound separated from the colletotrichum gloesporioides is C15H22O3. The preparation method of the compound comprises the following steps: activating a colletotrichum gloesporioides strain which has been cryopreserved, inoculating the activated strain to a culture medium for culturing, preparing a PDB liquid culture medium, and sterilizing; dissolving a bottle of penicillin and a bottle of streptomycin in sterile water, and adding the solution in a fermenting tank; inoculating the sterilized culture into the fermenting tank for fermenting; after fermenting is finished, carrying out suction filtration on a fermented product to obtain mycelium; extracting and concentrating to obtain a bacteria solution extract; and carrying out column chromatography, elution and wet packing on a coarse extract, carrying out elution and column chromatography on silica gel again, carrying out elution with petroleum ether-acetone eluant again, carrying out column chromatography, carrying out elution with chloroform-methanol to implement decolorization, and carrying out separation to obtain the compound which is colletotrichum gloesporioides A. The provided compound can be used for preparing anti-senile dementia drug.