Gabapentin is used to treat nerve pain and seizures. It works by calming the damaged or overactive nerves in the body that cause pain or seizures. Common side effects include dizziness, drowsiness, dry mouth, and weight gain. Serious side effects can include severe allergic reactions, mood changes, and vision changes.