Through bioinformatic analysis, we identified NETs-related diagnostic genes (ITIH3, FGF1, NRCAM, AGER, CACNA1C) in T2DM, and explored their mechanism of action from different aspects, providing new ideas for the studies related to diagnosis and treatment of T2DM. Here, CACNA1C is linked to type 2 diabetes mellitus.