Nonsteroidal anti-inflammatory drugs (NSAIDs) are commonly used analgesics, but can cause gastric and esophageal hemorrhages, erosion, and ulceration. The endogenous cannabinoid (endocannabinoid; eCB) system possesses several potential targets to reduce gastric inflammatory states, including cannabinoid receptor type 1 (CB(1)), cannabinoid receptor type 2 (CB(2)), and enzymes that regulate the eCB ligands 2-arachidonoylglycerol (2-AG) and N-arachidonoyl ethanolamine (anandamide; AEA). In the presented study, we tested whether 4-nitrophenyl 4-(dibenzo[d][1,3]dioxol-5-yl(hydroxy)methyl)piperidine-1-carboxylate (JZL184), a selective inhibitor of the primary catabolic enzyme of 2-AG, monoacylglycerol lipase (MAGL), would protect against NSAID-induced gastric damage. Food-deprived mice administered the nonselective cyclooxygenase inhibitor diclofenac sodium displayed gastric hemorrhages and increases in proinflammatory cytokines. JZL184, the proton pump inhibitor omeprazole (positive control), or the primary constituent of marijuana, Δ(9)-tetrahydrocannabinol (THC), significantly prevented diclofenac-induced gastric hemorrhages. JZL184 also increased stomach levels of 2-AG, but had no effect on AEA, arachidonic acid, or the prostaglandins E(2) and D(2). MAGL inhibition fully blocked diclofenac-induced increases in gastric levels of proinflammatory cytokines interleukin (IL)-1β, IL-6, tumor necrosis factor α, and granulocyte colony-stimulating factor, as well as IL-10. Pharmacological inhibition or genetic deletion of CB(1) or CB(2) revealed that the gastroprotective effects of JZL184 and THC were mediated via CB(1). The antihemorrhagic effects of JZL184 persisted with repeated administration, indicating a lack of tolerance. These data indicate that increasing 2-AG protects against gastric damage induced by NSAIDs, and its primary catabolic enzyme MAGL offers a promising target for the development of analgesic therapeutics possessing gastroprotective properties.