Comorbid anxiodepressive-like symptoms (CADS) in chronic pain are closely related to the overactivation of the lateral habenula (LHb). Hyperpolarization-activated cyclic nucleotide-gated (HCN) channels have been implicated to play a key role in regulating neuronal excitability. However, the role of HCN channels in the LHb during CADS has not yet been characterized. This study aimed to investigate the effect of HCN channels in the LHb on CADS during chronic pain. After chronic neuropathic pain induction by spared nerve injury (SNI), mice underwent a sucrose preference test, forced swimming test, tail suspension test, open-field test, and elevated plus maze test to evaluate their anxiodepressive-like behaviors. Electrophysiological recordings, immunohistochemistry, Western blotting, pharmacological experiments, and virus knockdown strategies were used to investigate the underlying mechanisms. Evident anxiodepressive-like behaviors were observed 6w after the SNI surgery, accompanied by increased neuronal excitability, enhanced HCN channel function, and increased expression of HCN2 isoforms in the LHb. Either pharmacological inhibition or virus knockdown of HCN2 channels significantly reduced LHb neuronal excitability and ameliorated both pain and depressive-like behaviors. Our results indicated that the LHb neurons were hyperactive under CADS in chronic pain, and this hyperactivation possibly resulted from the enhanced function of HCN channels and up-regulation of HCN2 isoforms.