Provided is a use of R-oxiracetam in the preparation of a drug for preventing or treating epilepsy. An experimental result shows that the R-oxiracetam has an obvious effect in the treatment of generalized epilepsy seizure, partial epilepsy seizure and status epilepticus.