Antiviral therapy for hepatitis B is effective and reduces the risk of progression to cirrhosis and liver cancer but is often required for an indefinite duration. Treatment adherence is important to prevent the development of resistance and optimize outcomes. Pharmacy adherence measures can be used to assess treatment adherence, with the medication possession ratio being less susceptible to bias than physician- or self-reported adherence. The aim of this study was to measure adherence in public hospital outpatients over a 3-year period and to examine factors associated with nonadherence. A retrospective study of pharmacy records of patients dispensed antiviral therapy for hepatitis B from four major hospitals in Melbourne between 2010 and 2013. Hospital record numbers were linked with and de-identified demographic information including age, sex, Indigenous status, country of birth, interpreter requirement, spoken language and postcode of residence. The medication possession ratio was the outcome measure with poor adherence defined