In particular, higher albumin level, metformin, insulin, and sulfonylureas were the independently protective factors, but older age and CCI score≥3 were the independent risk factors for all-cause death in patients with pulmonary TB and type 2 diabetes comorbidity. The gene discussed is ALB; the disease is type 2 diabetes mellitus.