The results of the LASSO Cox regression model revealed that the CRP/albumin ratio (CAR), extrapulmonary disseminated tuberculosis, other pulmonary infectious diseases, and pulmonary cavitation were independent risk factors for unfavorable outcomes in patients with AIDS combined with PTB, whereas the CD4+ T-cell counts was a protective factor affecting patient outcomes. This evidence concerns the gene CD4 and AIDS.