The incidence of stomach diseases is very high, which has a significant impact on human health. Damaged gastric mucosa is more vulnerable to injury, leading to bleeding and perforation, which eventually aggravates the primary disease. Therefore, the protection of gastric mucosa is crucial. However, existing drugs that protect gastric mucosa can cause nonnegligible side effects, such as hepatic inflammation, nephritis, hypoacidity, impotence, osteoporotic bone fracture, and hypergastrinemia. Autophagy, as a major intracellular lysosome-dependent degradation process, plays a key role in maintaining intracellular homeostasis and resisting environmental pressure, which may be a potential therapeutic target for protecting gastric mucosa. Recent studies have demonstrated that autophagy played a dual role when gastric mucosa exposed to biological and chemical factors. More indepth studies are needed on the protective effect of autophagy in gastric mucosa. In this review, we focus on the mechanisms and the dual role of various biological and chemical factors regulating autophagy, such as Helicobacter pylori, virus, and nonsteroidal anti-inflammatory drugs. And we summarize the pathophysiological properties and pharmacological strategies for the protection of gastric mucosa through autophagy.