Trees can sequester air pollutants, and air pollution is associated with poor tuberculosis outcomes. However, the health impacts of urban trees on tuberculosis patients are unknown. To elucidate the effects of urban tree canopy on mortality during tuberculosis treatment, we evaluated patients diagnosed with active tuberculosis in California from 2000 through 2012, obtaining patient data from the California tuberculosis registry. Our primary outcome was all-cause mortality during tuberculosis treatment. We determined percent tree cover using 1 mresolution color infrared orthoimagery categorized into land cover classes, then linked tree cover to four circular buffer zones of 50-300 m radii around patient residential addresses. We used the Kaplan-Meier method to estimate survival probabilities and Cox regression models to determine mortality hazard ratios, adjusting for demographic, socioeconomic, and clinical covariates. Our cohort included 33,962 tuberculosis patients of median age 47, 59% male, 51% unemployed, and 4.9% HIV positive. Tuberculosis was microbiologically confirmed in 79%, and 1.17% were multi-drug resistant (MDR). Median tree cover was 7.9% (50 m buffer). Patients were followed for 23,280 person-years with 2370 deaths during tuberculosis treatment resulting in a crude mortality rate of 1018 deaths per 10,000 person-years. Increasing tree cover quintiles were associated with decreasing mortality risk during tuberculosis treatment in all buffers, and the magnitude of association decreased incrementally with increasing buffer radius: In the 50 m buffer, patients living in neighborhoods with the highest quintile tree cover experienced a 22% reduction in mortality (HR 0.78, 95%CI 0.68-0.90) compared to those living in lowest quintile tree cover; whereas for 100, 200, and 300 m buffers, a 21%, 13%, and 11% mortality risk reduction was evident. In conclusion, urban tree canopy was associated with decreased mortality during tuberculosis treatment even after adjusting for multiple demographic, socioeconomic, and clinical factors, suggesting that trees might play a role in improving tuberculosis outcomes.