Background Aspirin exerts side effects within the gastrointestinal tract. Hydrogen sulfide (H 2 S) and carbon monoxide (CO) have been implicated in gastroprotection but the mechanism of beneficial action of these gaseous mediators against aspirin-induced damage has not been fully studied. We determined the involvement of afferent sensory neurons, calcitonin-gene-related peptide (CGRP), lipid peroxidation, and nitric oxide (NO) biosynthesis in gastroprotection of H 2 S-releasing NaHS and CO-releasing tricarbonyldichlororuthenium(II) dimer (CORM-2) against aspirin-induced injury. Methods Wistar rats with or without capsaicin-induced denervation of sensory neurons were pretreated with vehicle, CORM-2 (5 mg/kg intragastrically), or NaHS (5 mg/kg intragastrically) with or without capsazepine (5 mg/kg intragastrically) or N G -nitro-L-arginine (L-NNA, 20 mg/kg intraperitoneally). The areas of aspirin-induced lesions and gastric blood flow (GBF) were assessed by planimetry and laser flowmetry respectively. Gastric mucosal messenger RNA and/or protein expression of CGRP, heme oxygenase 1, inducible nitric oxide synthase, cyclooxygenase 2, interleukin-1b, glutathione peroxidase 1 (GPx-1), and superoxide dismutase was determined by real-time PCR or Western blot. Malondialdehyde (MDA) and 4-hydroxynonenal (4-HNE) content was determined by colorimetric assay. Results Aspirin caused gastric lesions, decreased GBF, and raised MDA content, but pretreatment with NaHS and CORM-2 reduced these effects. Capsaicin-induced denervation or co-treatment with capsazepine reversed the gastroprotective and vasodilatory effects of NaHS but not those of CORM-2. L-NNA reversed NaHS-induced gastroprotection and partly reduced CORM-2-induced gastroprotection. NaHS and CORM-2 decreased MDA and 4-HNE content, restoring GPx-1 protein expression. Conclusions We conclude that H 2 S-but not CO-mediated gastroprotection against aspirin-induced injury involves afferent sensory nerves and partly NO activity. NaHS and CORM-2 prevented aspirin-induced gastric mucosal lipid peroxidation via restoration of microcirculation and antioxidative GPx-1 protein expression.