Introduction: Epilepsy is one of the most neurological diseases that appear as sudden strokes and transient, redundant and unpredictable movement, with sensory-motor and autonomic origins. Epileptic seizures are caused by the impaired balance between excitatory and inhibitor neurotransmitters in the brain. Ghrelin has anticonvulsant effects in an acute and chronic pentylenetetrazole (PTZ) model. This study aimed to investigate the effect of Ghrelin on pentylenetetrazole-induced seizures (working memory, locomotor activity, and oxidative biomarkers) in gonadectomized male mice. Methods and Materials: 28 male mice weighing 30-35 g were utilized in the examination. The mice were divided into four groups: PTZ, PTZ+gonadectomy, PTZ+Ghrelin, and PTZ+gonadectomy+Ghrelin. The testes were surgically removed, and the Ghrelin (80 mg/kg) was injected intraperitoneally; then, 30 minutes later, they received PTZ (80 mg/kg) injection. Results: The time of tonic and clonic seizures in the group receiving Ghrelin was significantly reduced compared to the control group. Also, a statistical difference was observed in the average delay time until the onset of seizures between the group receiving Ghrelin and the other groups. Administration of Ghrelin reduces the rate of death caused by seizures and prevents the occurrence of tonic-clonic seizures. Meanwhile, gonadectomy has the opposite effects of Ghrelin (p<0.001). Conclusion: The results demonstrated that Ghrelin has anticonvulsant effects while gonadectomy increases seizures.