Gabapentin is a medication commonly prescribed to treat nerve pain, seizures, and sometimes restless leg syndrome. It works by affecting the way nerves send signals to the brain, which helps reduce pain and control seizures. Gabapentin is a medication commonly prescribed to treat nerve pain, seizures, and sometimes restless leg syndrome. It works by affecting the way nerves send signals to the brain, which helps reduce pain and control seizures.