In the recessive model, when the HLA‐DQB2 rs7453920 GG/GA genotype was applied as the reference group, the association between the AA genotype and the risk of TB was less than tobacco (adjusted OR = 1.989, 95% CI = 1.254–3.154, p = 0.003). Here, HLA-DQB2 is linked to tuberculosis.