Adverse TB treatment outcome in actively detected cases was associated with CD4 count ≤100 cells/mm3 and low BMI and MUAC. This evidence concerns the gene CD4 and tuberculosis.