Hydrogen sulfide (H2S) promotes gastric acid secretion in rats. The present study aimed to test the hypothesis that H2S regulates this response via activating TRPV1 channel and through activation of the nuclear factor-κB (NF-κB) pathway. Male Wistar rats were randomly divided into the sodium hydrosulfide (NaHS, 100 μmol/kg b.w.) group, pyrrolidine dithiocarbamate (PDTC, 100 μmol/kg b.w.) group, PDTC (100 μmol/kg b.w.) + NaHS (100 μmol /kg b.w.) group, capsazepine (0.1 mM) + NaHS (100 μmol /kg b.w.) group and L703606 (0.1 mM) + NaHS (100 μmol /kg b.w.) group. The acidity of gastric juice before injection and after injection were determined by a pH meter. The results showed that sodium hydrosulfide (NaHS), an exogenous H2S donor, significantly reduced the pH of gastric juice when injected into the enterocoelia. Further, the promotional effect of NaHS on gastric acid secretion could be attenuated by capsazepine, a transient receptor potential vanilloid 1 (TRPV1) antagonist; L703606, a neurokinin 1 (NK1) receptor antagonist; and PDTC, a NF-κB inhibitor. The data from these experiments suggest that NaHS exerts an excitatory effect on gastric acid secretion possibly mediated by TRPV1 channel activation in sensory nerve terminals with the consequent release of substance P and in a NF-κB -dependent manner.