Gabapentin is an anticonvulsant medication that doctors prescribe as an epilepsy treatment to prevent partial seizures.