The invention discloses a traditional Chinese medicine preparation with an antiviral function. Raw materials, namely, peach seeds, seeds of job's tears, heartleaf houttuynia herbs, cape jasmine, purslane herbs, ginkgo seeds, dark plum fruits, semen cassiae, mulberry leaves, perilla and mint, are matched, so that the preparation has a synergistic effect, and the raw materials cooperate with one another to realize functions of promoting blood circulation, removing blood stasis, regulating immunity and killing viruses. Clinical trials indicate that the traditional Chinese medicine preparation has a very good treatment effect on viruses such as flat warts, condyloma acuminatum and the like and has a very good conditioning effect on various diseases (skin and mucosa low-risk and high-risk problems such as flat warts, common warts, condyloma acuminatum, early-stage cervical cancers) caused by human papilloma viruses as well as hepatitis B virus, various common cold viruses and the like.