Among the individuals with TB as the outcome, KIR2DS2 was associated with increased risk for TB onset (aOR = 2.39, P = 0.04), whereas HLA-B*08 and female gender were associated with protection against TB onset (aOR = 0.23, P = 0.03, and aOR = 0.33, P = 0.01, respectively). This evidence concerns the gene HLA-B and tuberculosis.