This prescription drug helps control seizures in people who have epilepsy. We also use it to treat the pain of shingles and to treat restless legs syndrome. Gabapentin is in a class of drugs we call "anticonvulsants."