In this study, we assessed the efficacy and safety of anti-PD-(L)1 treatment in patients with coexisting malignancy and tuberculosis and investigated the efficacy of anti-tuberculosis therapy in those with active tuberculosis. Here, CD274 is linked to tuberculosis.