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. Here, PTGES3 is linked to type 2 diabetes mellitus.