Tenofovir alafenamide is used to treat chronic hepatitis B virus (HBV) infection in patients with compensated liver disease.