Gabapentin is a prescription medication primarily used to treat nerve pain, seizures, and certain anxiety disorders. It works by affecting the way the nervous system transmits pain signals, helping to reduce discomfort caused by conditions like neuropathy, fibromyalgia, and post-herpetic neuralgia. It is also used as an adjunctive treatment for partial seizures in epilepsy.