Gastric cancer is a malignant tumor associated with a high mortality rate. Recently, emerging evidence has shown that ferroptosis, a regulated form of cell death induced by iron (Fe)-dependent lipid peroxidation. Nuclear factor E2 related factor 2 (NRF2) is a key regulator of intracellular oxidation homeostasis that plays a pivotal role in controlling lipid peroxidation, which is closely related to the process of ferroptosis. However, the molecular mechanism of NRF2 on ferroptosis remains to be investigated in gastric cancer. In our study, NRF 2 was found to transcriptionally activate Aldo-keto reductase 1 member B1 (AKR1B1) expression in gastric cancer. AKR1B1 is involved in the regulation of lipid metabolism by removing the aldehyde group of glutathione. We found that AKR1B1 is highly expressed in gastric cancer and is associated with a poor prognosis of the patients. In vitro experiments found that AKR1B1 has the ability to promote the proliferation and invasion of gastric cancer cells. AKR1B1 inhibited RSL3-induced ferroptosis in gastric cancer by reducing reactive oxygen species accumulation and lipid peroxidation, as well as decreasing intracellular ferrous ion and malondialdehyde expression and increasing glutathione expression. Our study demonstrated that AKR1B1 resisted RSL3-induced ferroptosis by regulating GPX4, PTGS2 and ACSL4, which was further demonstrated in a xenograft nude mouse model. Our work reveals a critical role for the AKR1B1 in the resistance to RSL3-induced ferroptosis in gastric cancer.