The invention relates to an anthraquinone derivative, a preparation method and application thereof. During preparation, entomopathogenic fungi in soft coral Alternaria sp. (ZJ-2008003) is first placed in a strain culturing medium for strain culturing and then placed in a fermentation culturing medium for fermentation culturing, obtained fermentation liquor is filtered, thalli are removed to obtain filtrate, and the filtrate is extracted through ethyl acetate; after extract liquor is concentrated, silicagel column chromatography, sephadex LH-20 gel column chromatography and half-preparation of high performance liquid chromatography preparation are conducted, obtained eluent is concentrated, and clear crystals are obtained, namely, the compound of tetrahydroaltersolanols C-E; pink powder is obtained, namely, the compound of tetrahydroaltersolanol F. The anthraquinone derivative originating from marine fungi has strong antiviral effect, can effectively restrain porcine reproductive and respiratory syndrome virus (PRRSV), can be used as antiviral drug, and has broad application prospects due to the fact that raw materials can be produced in a large scale.