Gabapentin is a medication that treats nerve pain by calming overactive nerves in your body. It may also prevent and control seizures in people with epilepsy. You can take this medication by mouth with a glass of water. Talk to your provider about medications you currently take to avoid drug interaction.