The invention discloses a hydroxy-pyrimidone compound shown as the general formula (I). In the general formula (I), the R1 represents tertiary butyl, phenyl or substituent phenyl and benzyl; the R2 represents hydrogen or substituent propyl, the R3, R4, R5, R6 and R7 respectively represent hydrogen, methyl, methoxy, hydroxyl or halogen individually, and the n is equal to one or two. The hydroxy-pyrimidone compound has good HIV-1 (human immunodeficiency virus) integrase inhibitory activity and HIV-1 antiviral activity, wherein integrase inhibitory activities IC50(inhibitory concentration) of compounds 5a, 5b, 5c, 5d, 5e, 5i, 5n and 5q are all lower than or equal to 1 micromole, compounds 5a, 5h and 5s have high antiviral activity, and EC50(effective concentration) of the compounds 5a,5h and 5s are respectively 1.72 micromoles, 1.91 micromoles and 1.3 micromoles, and accordingly, the hydroxy-pyrimidone compound can be used for preparing anti-AIDs drugs.