The present invention relates to the use of triterpenoid derivatives for the preparation of a medicament for preventing or treating influenza diseases, in which the substituents are as defined in the specification. The triterpenoid derivatives of the present invention have obvious inhibition effect on influenza virus, and are capable of obviously preventing influenza virus from entering cells, and can be used for preventing or treating influenza