Gabapentin is a medication primarily used to treat epileptic seizures and neuropathic pain. It is an anticonvulsant and an analgesic, which means it can help manage pain by altering the way the body perceives it. Gabapentin is commonly prescribed under brand names like Neurontin and Gralise.