Background: There are 350 million carriers of hepatitis B virus (HBV) around the world. HBV can be associated with type II diabetes mellitus. The aim of this study was to evaluate the prevalence and risk factors for type II diabetes mellitus among patients with HBV. Methods: This community-based, cross sectional, descriptive, correlational study recruited participants above 13 years, who resided in Esfandiar rural area, Tabas, Iran. A blood sample was collected from each participant for serological and biochemical tests. A researcher-made questionnaire was used to collect data on the participants' demographic characteristics, HBV risk factors, and diabetes mellitus risk factors. Independent sample t test, Chi square test, and Fisher's exact test were applied in SPSS v. 22.0 at a significance level of < 0.05.