DRUG CLASS AND MECHANISM: Gabapentin is an anti-sizure (anti-convulsant) drug that is used for preventing seizures and for treating post-herpetic neuralgia, the pain that follows an episode of shingles.