Compared to untreated T2D cells, rapamycin-exposed diabetic islets showed improved insulin secretion, reduced proportion of beta cells showing signs of apoptosis and better preserved insulin granules, mitochondria and ER ultrastructure; this was associated with significant reduction of PERK, CHOP and BiP gene expression. Here, HSPA5 is linked to type 2 diabetes mellitus.