Reflux esophagitis is a common clinical entity in western countries with approximately 30% of the population experiencing the symptoms at least once every month. The imbalance between the protective and aggressive factors leads to inflammation and damage of the esophageal mucosa. We compared the effect of exogenous melatonin and melatonin derived endogenously from L-tryptophan with that of pantoprazole or ranitidine in acid reflux esophagitis due to ligation of the rat pylorus and the limiting ridge between the forestomach and the corpus. Four hours after the induction of gastric reflux, an increase in mucosal lesions associated with edema of the submucosa and with the infiltration of numerous neutrophils and the fall in esophageal blood flow (EBF) were observed. Both melatonin and L-tryptophan or pantoprazole significantly reduced the lesion index (LI) and raised the EBF. Pinealectomy that significantly decreased plasma melatonin levels aggravated LI and these effects were reduced by melatonin and L-tryptophan. Luzindole, the MT2 receptor antagonist, abolished the melatonin-induced reduction in LI and the rise in EBF. L-NNA and capsaicin that augmented LI and decreased EBF, also significantly reduced melatonin-induced protection and hyperemia; both were restored with L-arginine and calcitonin gene–related peptide (CGRP) added to melatonin. Upregulation of IL-1β and TNF-α mRNAs and plasma IL-1β and TNF-α levels were significantly attenuated by melatonin and L-tryptophan. We conclude that melatonin protects against acid reflux-induced damage via activation of MT2 receptors mediated by NO and CGRP released from sensory nerves and the suppression of expression and release of TNF-α and IL-1β.