KEGG enrichment analysis revealed that NF-κB and MAPK signaling pathways play crucial roles in the DM–TB pathogenic mechanism, and immune infiltration analysis showed significant suppression of certain adaptive immune cells and activation of inflammatory cells in DM–TB patients. The gene discussed is NFKB1; the disease is tuberculosis.