Antiviral medications are used whenever a patient has a history of hepatitis B and is indicated for antiviral therapy. The commonly used ones are entecavir and tenofovir. Entecavir is a cyclopentylguanosine analog that prevents viral DNA from replicating by potently inhibiting reverse transcriptase activity. Tenofovir competitively inhibits deoxyribose substrates, thereby preventing viral polymerase production. Tenofovir is hardly absorbed through the gastrointestinal tract, and the drug enters the body to reach the peak concentration of the drug very quickly, and its onset of action is also fast. At the same time tenofovir and food together, can improve its bioavailability. It is relatively safe for use in pregnant patients or pregnant women. Tenofovir is superior to entecavir in terms of antiviral activity and can effectively inhibit the replication of hepatitis B virus DNA. It should be used under the supervision of a doctor.