Diabetic retinopathy (DR) is a serious microvascular complication of diabetes. The aim of this study was to explore the effect of Sestrin2 on DR through the regulation of autophagy and ferroptosis levels and its mechanism. In vitro and in vivo DR models were established by high glucose (HG) and streptozotocin (STZ) induction of ARPE-19 human retinal pigment epithelial cells and C57BL/6 mice, respectively. In this study, we demonstrated that after HG treatment, the activity of ARPE-19 cells was decreased, the apoptosis rate was increased, endoplasmic reticulum (ER) stress was activated, autophagy levels were decreased, and ferroptosis levels were increased. Overexpression of Sestrin2 enhanced cell viability, reduced apoptosis and ferroptosis, and enhanced autophagy. However, the effect of overexpression of Sestrin2 was attenuated after the addition of the STAT3 phosphorylation activator Colivelin TFA (C-TFA), the mTOR pathway activator MHY1485 or the autophagy inhibitor 3-methyladenine (3-MA). In addition, the effect of Sestrin2 knockdown on cells was opposite to the effect of overexpression of Sestrin2, while the effect of Sestrin2 knockdown was attenuated after treatment with the ER stress inhibitor 4-phenylbutyric acid (4-PBA). Animal experiments also confirmed the results of cell experiments and attenuated the effects of overexpression of Sestrin2 after injection of the ferroptosis activators erastin or 3-MA. Our study revealed that Sestrin2 inhibits ferroptosis by inhibiting STAT3 phosphorylation and ER stress and promoting autophagy levels, thereby alleviating DR.