Entecavir is used to treat liver infection caused by hepatitis B virus. It belongs to the family of medicines called antivirals. Antivirals are used to treat infections that are caused by viruses. This medicine will not cure the hepatitis B virus, but it will keep it from reproducing and causing more liver damage.