G-protein-coupled receptors are considered to be cell-surface sensors of extracellular signals, thereby having a crucial role in signal transduction and being the most fruitful targets for drug discovery. G-protein-coupled receptor 151 (GPR151) was reported to be expressed specifically in the habenular area. Here we report the expression and the epigenetic regulation of GRP151 in the spinal cord after spinal nerve ligation (SNL) and the contribution of GPR151 to neuropathic pain in male mice. SNL dramatically increased GPR151 expression in spinal neurons. GPR151 mutation or spinal inhibition by shRNA alleviated SNL-induced mechanical allodynia and heat hyperalgesia. Interestingly, the CpG island in the GPR151 gene promoter region was demethylated, the expression of DNA methyltransferase 3b (DNMT3b) was decreased, and the binding of DNMT3b with GPR151 promoter was reduced after SNL. Overexpression of DNMT3b in the spinal cord decreased GPR151 expression and attenuated SNL-induced neuropathic pain. Furthermore, Krüppel-like factor 5 (KLF5), a transcriptional factor of the KLF family, was upregulated in spinal neurons, and the binding affinity of KLF5 with GPR151 promoter was increased after SNL. Inhibition of KLF5 reduced GPR151 expression and attenuated SNL-induced pain hypersensitivity. Further mRNA microarray analysis revealed that mutation of GPR151 reduced the expression of a variety of pain-related genes in response to SNL, especially mitogen-activated protein kinase (MAPK) signaling pathway-associated genes. This study reveals that GPR151, increased by DNA demethylation and the enhanced interaction with KLF5, contributes to the maintenance of neuropathic pain via increasing MAPK pathway-related gene expression.