RTN1, CLGN, PCSK1, IAPP, ILF2, IMPA1, CCDC47, and PTGES3 were identified as ERS-related DEGs in T2DM, which were revealed to be involved in protein folding, membrane composition, and metabolism regulation. The gene discussed is IAPP; the disease is type 2 diabetes mellitus.