The ability of the "mucoid cap" of mucus, fibrin, and cellular debris that forms over sites of superficial gastric damage to provide a relatively high-pH microenvironment was investigated in the rat. Furthermore, the effects of administration of nonsteroidal antiinflammatory drugs or reduction of mucosal blood flow on this microenvironment were investigated. Superficial mucosal damage induced by a 2-minute exposure to Hypertonic saline produces a mucoid cap that has a pH of 4-6 despite the presence in the lumen of a solution of acid with a pH of less than 1. This relatively high-pH microenvironment remained even when the exposure to 0.15-mol/L HCl was continued for as long as 1 hour. Intraperitoneal administration of indomethacin (5 mg/kg) or naproxen (10 mg/kg) resulted, within 10-25 minutes, in complete dissipation of this high-pH microenvironment, with the subsequent development of hemorrhagic erosions. These effects of indomethacin and naproxen occurred subsequent to significant inhibition of gastric prostaglandin synthesis by these agents. Rapid dissipation of the pH gradient could also be produced by brief (30-second) clamping of the arterial blood supply to the chambered mucosa or by systemic administration of a vasoconstrictor (endothelin-1), in both cases resulting in the development of hemorrhagic erosions. These results show that the mucoid cap over sites of superficial damage provides a relatively high-pH microenvironment and that dissipation of this microenvironment by inhibitors of prostaglandin synthesis or by reduction of mucosal blood flow can convert sites of superficial mucosal injury to hemorrhagic erosions. Such inhibitory effects might contribute to the ulcerogenic actions of nonsteroidal antiinflammatory drugs. © 1990.