Entecavir is an antiviral medicine used in the treatment of hepatitis B virus (HBV) infection. It works by inhibiting the replication of the virus, thereby reducing its levels in the body. By suppressing viral replication, it helps to slow down the progression of liver damage.