The application of the active ingredient gentiopicroside in the preparation of drugs for inhibiting hepatitis B virus. The active ingredient gentiopicroside is a compound extracted and separated from the commonly used traditional Chinese medicine Gentiana quinquefolium in my country. The active ingredient gentiopicroside is mixed with pharmaceutically acceptable carriers in preparations such as those suitable for enteral and parenteral administration. Organic or inorganic solid or liquid excipients are mixed, and the pharmaceutical preparation can be in solid form such as tablet, capsule, powder, pill, granule, or in liquid form such as injection, emulsion, etc. Gentiopicroside was prepared into injections, and the drug efficacy test showed that ducks infected with duck hepatitis B virus were treated with intramuscular injection of gentiopicroside on the 7th day after infection. The inhibitory effect of duck serum DHBV-DNA level is remarkable, and the statistical processing results have very significant and significant differences, inhibitory effect (P<0.01-0.05), and the inhibitory effect of three batches of experiments can be repeated.