Importance Active tuberculosis (TB) disease leads to substantial mortality but is preventable through screening and treatment for latent TB infection. Early mortality after TB diagnosis (<= 1 year) is well described, but delayed mortality (>1 year) among patients with active TB is poorly understood. Objective To compare early and delayed mortality and years of potential life (YPL) lost among patients with active TB disease vs an age-, sex-, and year of diagnosis-matched comparison cohort without active TB disease. Design, Setting, and Participants This retrospective cohort study, conducted in the integrated health system of Kaiser Permanente Northern California, included patients with microbiologically confirmed active TB disease from January 1, 1997, to December 31, 2017, and a control cohort matched by age, sex, and year of diagnosis. Multivariable models were used to adjust for demographic and clinical characteristics. Patients with active TB disease prior to 1997 were excluded. Data were analyzed from January 1, 2019, to January 31, 2020. Exposure Microbiologically confirmed TB disease. Main Outcomes and Measures Early (<= 1 year after TB diagnosis) and delayed (>1 year after TB diagnosis) all-cause mortality. Results A total of 2522 patients who had active TB from 1997 to 2017 were identified, with 17166 person-years of follow-up. The comparison cohort included 100880 persons with 735726 person-years of follow-up. In the active TB and comparison cohorts, similar percentages of persons were male (56.3% vs 55.6%), aged 45 to 64 years (33.7% vs 33.7%), and aged 65 years or older (24.7% vs 24.7%). Both early mortality (7.0%) and delayed mortality (16.3%) were higher among patients with active TB disease compared with those without active TB disease (1.1% and 12.0%, respectively). Patients with active TB disease had a significantly higher risk for early (adjusted hazard ratio [aHR], 7.29; 95% CI, 6.08-8.73) and delayed (aHR, 1.78; 95% CI, 1.61-1.98) mortality compared with the comparison cohort (P < .001). Active TB disease was associated with an adjusted -7.0 (95% CI, -8.4 to -5.5) YPL lost compared with the comparison cohort. Conclusions and Relevance In this study, patients with active TB disease had significantly higher early and delayed all-cause mortality when adjusting for demographic and clinical characteristics. These findings suggest that TB prevention through screening and treatment of latent TB infection could reduce mortality and YPL lost due to active TB disease. This cohort study examines the risk of mortality and years of potential life lost among patients with active tuberculosis disease compared with individuals without active tuberculosis. Question Do patients with active tuberculosis disease have an increased risk of delayed mortality (ie, more than 1 year after tuberculosis diagnosis)? Findings In this cohort study, 2522 patients with active tuberculosis disease had a 78% increased risk of death more than 1 year after tuberculosis diagnosis compared with a matched comparison cohort of 100 880 individuals without active tuberculosis. Meaning These findings suggest that the mortality risk and longevity loss associated with active tuberculosis disease is underappreciated; patients with active tuberculosis disease appear to have a long-term increased risk of mortality.