Background and Aim: Currently, various drugs are used to treat epilepsy and seizures, which in turn, have side effects and, in the long run, cause drug resistance. In traditional medicine, violet plant (Viola odorata) is recommended for the treatment of seizure. The aim of this study was to evaluate the antinociceptive effects of violet flowers in animal models of seizure compared to carbamazepine. Methods: In the present experimental study, 40 rat mice were used in five groups of eight. Hydroalcoholic extract of violet flower was diluted with physiological serum. Experimental groups included: control group and four treatment groups receiving carbamazepine and extract of violet flowers at doses of 50, 100 and 200 mg / kg by intraperitoneal method one hour before injection of pentylenetetrazole. Subsequently, non-response factors of the animal, duration of tonic seizure, clonic seizure, generalized seizure, total seizure and mortality rate was determined. Data were analyzed using multivariate and one-way ANOVA using statistical package for social sciences version 22 and chi-square test. Results: Violet flower extract at dose of 50 mg / kg was significantly different in the tonic-clonic stage and at the time of total seizure in the control group. However, there was a significant difference in the injections of 100 and 200 mg / kg in all stages with the control group (p <0.05). The mortality rate in the 200 mg / kg dose of vinegar extract was significantly lower than other experimental groups. Conclusion: The hydroalcoholic extract of violet flowers in at dose of 200 mg / kg was proposed as an effective and effective drug in the prevention of seizure in the animal model.