The invention discloses application of pomegranate in preparing a medicament for treating or preventing hepatitis B virus (HBV) infection. The application is implemented through the following steps: detecting the cytotoxicity of each pomegranate sourced medicament to HepG2.117, wherein the CC50 of punicalagin, gallic acid and punicalin is sequentially more than 500mu M, 334mu M and 218.86mu M; and then detecting the effects of the punicalagin, ellagic acid, gallic acid and punicalin to HBeAg and HBsAg, and the effect of punicalagin to DNA (deoxyribonucleic acid) and RNA (ribonucleic acid) of virus. Results indicate that the four compounds can be used for inhibiting HBeAg and HBsAg, wherein the punicalagin can be used for remarkably reducing the cccDNA (covalently closed circular DNA). The punicalagin can be used for remarkably reducing the contents of HBeAg and cccDNA in an HepG2.2.15 cell, and does not have effect to the total HBV DNA in the cell, which indicates that the punicalagin takes the cccDNA as a target to directly clear the cccDNA in a liver cell. Currently, the anti-HBV infection medicament in clinical treatment cannot directly act on the cccDNA, and cannot completely remove the virus. Experiment results disclose that the medicament has the prospect of being developed into anti-HBV infection medicaments.