Background: Earlier observational researches have shown a relationship between hepatic B virus (HBV) infection and osteoporosis. Nonetheless, it is still uncertain whether these connections are due to direct causation or if they are influenced by other confounding factors. Objectives: To explore whether HBV infection will increase the risk of osteoporosis in East Asian and European population by the way of two-sample mendelian randomization (MR) analysis. Method: The HBV infection was utilized as the exposure variable and the osteoporosis was outcome variable. The Genome-wide association study (GWAS) data of the exposure and outcome variable were sourced from the website of IEU open GWAS project. A two-sample MR method was employed to examine the causal relationships, utilizing the inverse variance-weighted (IVW) as the primary analytical method. The sensitivity analysis was performed to evaluate the reliability of the results from the Mendelian randomization analysis. Result: The result of IVW indicated that patients with HBV infection wouldn’t increase the risk of osteoporosis in East Asian population (OR=1.042, 95%CI: 1.000-1.086, p=0.057) and in European population (OR=0.974, 95%CI: 0.832-1.074, p=0.691). The sensitivity analysis showed no evidence of heterogeneity or pleiotropy in this MR analysis. Conclusion: This two-sample MR analysis support that patients with hepatitis B virus infection won’t increase the risk of osteoporosis among East Asian and European population.