Gabapentin’s primary use is in treating seizures and neuropathic pain. However, in some cases, it may also be used for treating insomnia. It is considered to be safe and effective as a treatment for insomnia, but you must speak with your doctor before taking it as a sleep aid, even if you’ve already been prescribed gabapentin for other symptoms.