The invention relates to an isoflavone compound, its preparation method, and its application in the preparation of antiviral or antitumor drugs, and concretely relates to a compound with a 
structural formula represented by formula (I). In the formula (I), R1 is 
hydrogen or C1-6 
alkyl; X is -O-, -NH-, -CH=CH-, or ethinyl, or R2 is directly connected with 
benzopyran; R2 is selected from substituted or unsubstituted phenyl, substituted or unsubstituted heteroaryl, C1-16 
alkyl, C1-16 alkyloxy, C1-16 alkyloxycarbonyl, or substituted or unsubstituted benzoyloxy; the heteroaryl is selected from groups derived from a five or six-membered heterocycle or a fused heterocycle containing one or two hetero atoms of N, O or S, and is selected but not limited to pyridyl, benzopyridyl, or groups derived from phenoxathiin, 
thiophene, 
oxazole and benzopyridine; and above 
substituent is selected from 
halogen, cyan, nitro, hydroxy, amino, C1-6 monosubstituted or disubstituted amino, C1-16 
alkyl, halogenated C1-6 alkyl, C2-6 alkenyl, C6-12 arylalkenyl, C1-16 alkyloxy, C1-16 carboxyl, C1-16 alkyloxycarbonyl, C1-16 alkylcarbonyl, and substituted or unsubstituted phenoxyl. The invention also provides the preparation of the compound.