We revealed the inflammatory immune pathways of DKD-related HCC and developed a diagnostic nomogram for HCC based on PLVAP, C7, COL15A1, and MS4A6A. The gene discussed is MS4A6A; the disease is hepatocellular carcinoma.