This study utilized middle cerebral artery occlusion (MCAO) mouse models and HT‐22 cell oxygen and glucose deprivation/reoxygenation (OGD/R) models to investigate the therapeutic effects of melatonin on ischemic brain injury. In the experiments, MCAO mice were treated with 5 and 10 mg/kg doses of melatonin, and H‐T22 cells underwent OGD/R treatment and were administered different concentrations of melatonin. The results showed that melatonin significantly reduced ischemic brain area, neural damage, cerebral edema, and neuronal apoptosis in MCAO mice. In the HT‐22 cell model, melatonin also improved cell proliferation ability, reduced apoptosis, and ROS production. Further mechanistic studies found that melatonin exerts protective effects by inhibiting ferroptosis, an iron‐dependent form of regulated cell death, through regulation of the ACSL4/CYP1B1 pathway. In MCAO mice, melatonin decreased lipid peroxidation, ROS production, and ACSL4 protein expression. Overexpression of CYP1B1 increased ACSL4 ubiquitination and degradation, thereby increasing cell tolerance to ferroptosis, reducing ACSL4 protein levels, and decreasing ROS production. CYP1B1 knockdown obtained opposite results. The CYP1B1 metabolite 20‐HETE induces expression of the E3 ubiquitin ligase FBXO10 by activating PKC signaling, which promotes ACSL4 degradation. In the OGD/R cell model, inhibition of CYP1B1 expression reversed the therapeutic effects of melatonin. In summary, this study demonstrates that melatonin protects the brain from ischemic injury by inhibiting ferroptosis through regulation of the ACSL4/CYP1B1 pathway, providing evidence for new therapeutic targets for ischemic brain injury.