Dingxian pill has been used as an antiepilepsy agent in China from ancient to modern times, of which the concrete pharmacological characterization and the underlying molecular mechanism remain unclear. The present study was undertaken to investigate them by animal behavior, electroencephalogram (EEG), Morris water maze, immunohistochemistry, transcriptomics, and real-time PCR. In our results, the treatment of Dingxian pill dose-dependently inhibited PTZ-induced seizure-like behavior and reduced the seizure grades, LFP power spectral density, and brain wave of the epileptiform EEG component induced by PTZ. In Morris water maze tests, the learning and memory ability of kindled epileptic rats could be attenuated more efficiently by Dingxian pill. For the immediate early gene c-fos, the expression was reduced after Dingxian pill treatment, and the difference was significant between the treatment and the model group. Through the transcriptome analysis of the gene expression in hippocampus, Egr3, Nrg, Arc, and Ptgs2, closely related to epilepsy, had been proved to be downregulated by application of Dingxian pill. All of the results not only highlight the antiepileptic effects of Dingxian pill and its molecular mechanism, but also provide a modern validity theory for the clinical application of traditional Chinese medicine (TCM).