Background/aim: To evaluate the protective effect of melatonin on ovarian ischemia reperfusion injury in a rat model. Materials and methods: Forty-eight rats were separated equally into 6 groups. Group 1: sham; Group 2: surgical control with 3-h bilateral ovarian torsion and detorsion; Group 3: intraperitoneal 5% ethanol (1 mL) just after detorsion (as melatonin was dissolved in ethanol); Group 4: 10 mg/kg intraperitoneal melatonin 30 min before 3-h torsion; Group 5:10 mg/kg intraperitoneal melatonin just after detorsion; Group 6:10 mg/kg intraperitoneal melatonin 30 min before torsion and just after detorsion. Both ovaries and blood samples were obtained 7 days after detorsion for histopathological and biochemical analysis.Results: In Group 1, serum levels of total oxidant status (TOS) (μmol H2O2 equivalent/g wet tissue)were significantly lower than in Group2 (P = 0.0023), while tissue TOS levels were lower than in Group 3 (P = 0.0030). Similarly, serum and tissue levels of peroxynitrite in Group 6were significantly lower than those ofGroup 2 (P = 0.0023 and P = 0.040, respectively). Moreover, serum oxidative stress index (OSI) (arbitrary unit) levels were significantly increased in Group 2 when compared to groups 1 and 6 (P = 0.0023 and P= 0.0016, respectively) and in Group 3 with respect to groups 1, 4, 5, and 6 (P = 0.0023, P = 0.0026, P = 0.0008, and P = 0.0011, respectively). Furthermore, there was a significant decrease in histopathological scores including follicular degeneration, vascular congestion, hemorrhage, and inflammation in the melatonin and sham groups in comparison with control groups. Additionally, primordial follicle count was significantly higher in Group 6 than in Group 2 (P = 0.0002).Conclusion: Melatonin attenuates ischemia reperfusion damage in a rat torsion/detorsion model by improving histopathological and biochemical findings including OSI and peroxynitrite.