The invention relates to a composition containing selfheal and blackberry lily, which comprises the following raw materials, or extracts of the following raw materials or chemically acceptable derivatives of the extracts of the following raw materials in respective dosage: 10 parts of selfheal and 2 to 60 parts of blackberry lily. On the basis, the following one kind or various kinds of but not limited to the following raw materials can be added according to specific conditions: 3 to 50 parts of rheum officinale, 3 to 50 parts of scutellaria baicalensis, 3 to 50 parts of lithospermum, 3 to 50 parts of radices trichosanthis, 3 to 50 parts of radix bupleuri, 3 to 50 parts of osmundaceae cyrtomium fortunei, 3 to 50 parts of honeysuckle and 3 to 50 parts of cassia twig. The composition can be prepared into medicinally or pharmaceutically acceptable physical forms such as powder, liquid, paste, particles, capsules and the like. The composition is used for preventing and treating viral diseases such as bird flu, newcastle diseases, infective bronchitis, infective leukemia, infective bursal diseases, swine fever, parvovirus diseases, epidemic diarrhea, porcine reproductive and respiratory syndrome and the like, and the mortality rate is reduced.