Gabapentin is an anticonvulsant medication primarily used to treat neuropathic pain (nerve pain) and control partial seizures in people with epilepsy. It is available under brand names such as Neurontin, Gralise, and Horizant, as well as in generic forms.