Levetiracetam is a medication used to treat epilepsy. It is used for partial-onset, myoclonic, or tonic–clonic seizures and is taken either by mouth as an immediate or extended release formulation or by injection into a vein.