Our results suggest that NO donor SNP alleviates acetic acid-induced gastric ulcer in rats via vagus nerve, while S-nitrosylation of TRPV1 may participate in this route. This evidence concerns the gene TRPV1 and gastric ulcer.