This study demonstrated that patients with coexisting malignant tumor and tuberculosis benefited equally from anti-PD-(L)1 therapy, and anti-tuberculosis response was unimpaired for those with active tuberculosis. This evidence concerns the gene CD274 and tuberculosis.