Gabapentin is in a class of medications called anticonvulsants. Gabapentin treats seizures by decreasing abnormal excitement in the brain. Gabapentin relieves the pain of PHN by changing the way the body senses pain.