Although pain dysfunction is increasingly observed in Huntington disease, the underlying mechanisms still unknown. As a crucial Huntington-associated protein, Huntington-associated protein 1 (HAP1) is enriched in normal spinal dorsal horn and dorsal root ganglia (DRG) which are regarded as "primary sensory center," indicating its potential functions in pain process. Here, we discovered that HAP1 level was greatly increased in the dorsal horn and DRG under acute and chronic pain conditions. Lack of HAP1 obviously suppressed mechanical allodynia and hyperalgesia in spared nerve injury (SNI)-induced and chronic constriction injury-induced pain. Its deficiency also greatly inhibited the excitability of nociceptive neurons. Interestingly, we found that suppressing HAP1 level diminished the membrane expression of the L-type calcium channel (Cav1.2), which can regulate Ca 2+ influx and then influence brain-derived neurotrophic factor (BDNF) synthesis and release. Furthermore, SNI-induced activation of astrocytes and microglia notably decreased in HAP1-deficient mice. These results indicate that HAP1 deficiency might attenuate pain responses. Collectively, our results suggest that HAP1 in dorsal horn and DRG neurons regulates Cav1.2 surface expression, which in turn reduces neuronal excitability, BDNF secretion, and inflammatory responses and ultimately influences neuropathic pain progression.