Gabapentin is a medication that acts on the chemical messengers in your brain and nerves to treat partial seizures and nerve pain