These results revealed that GSPE might protect the pancreas from oxidative stress by activating the Nrf2 signaling pathway to inhibit ferroptosis in T2DM. Here, NFE2L2 is linked to type 2 diabetes mellitus.