BackgroundFerroptosis is an iron-related form of programmed cell death. Accumulating evidence has identified the pathogenic role of ferroptosis in multiple orthopedic disorders. However, the relationship between ferroptosis and SONFH is still unclear. In addition, despite being a common disease in orthopedics, there is still no effective treatment for SONFH. Therefore, clarifying the pathogenic mechanism of SONFH and investigating pharmacologic inhibitors from approved clinical drugs for SONFH is an effective strategy for clinical translation. Melatonin (MT), an endocrine hormone that has become a popular dietary supplement because of its excellent antioxidation, was supplemented from an external source to treat glucocorticoid-induced damage in this study.MethodsMethylprednisolone, a commonly used glucocorticoid in the clinic, was selected to simulate glucocorticoid-induced injury in the current study. Ferroptosis was observed through the detection of ferroptosis-associated genes, lipid peroxidation and mitochondrial function. Bioinformatics analysis was performed to explore the mechanism of SONFH. In addition, a melatonin receptor antagonist and shGDF15 were applied to block the therapeutic effect of MT to further confirm the mechanism. Finally, cell experiments and the SONFH rat model were used to detect the therapeutic effects of MT.ResultsMT alleviated bone loss in SONFH rats by maintaining BMSC activity through suppression of ferroptosis. The results are further verified by the melatonin MT2 receptor antagonist that can block the therapeutic effects of MT. In addition, bioinformatic analysis and subsequent experiments confirmed that growth differentiation factor 15 (GDF15), a stress response cytokine, was downregulated in the process of SONFH. On the contrary, MT treatment increased the expression of GDF15 in bone marrow mesenchymal stem cells. Lastly, rescue experiments performed with shGDF15 confirmed that GDF15 plays a key role in the therapeutic effects of melatonin.ConclusionsWe proposed that MT attenuated SONFH by inhibiting ferroptosis through the regulation of GDF15, and supplementation with exogenous MT might be a promising method for the treatment of SONFH.Graphical AbstractSupplementary InformationThe online version contains supplementary material available at 10.1186/s13287-023-03371-y.