The pain in the stomach at night after gastroscopy may be caused by physiological factors such as stimulation of the gastric mucosa by the gastroscope, or it may be caused by pathologic factors such as gastric ulcer and gastritis. You can take dietary therapy such as light diet, physical therapy such as appropriate hot compresses, and medication such as aluminum sulfate to relieve symptoms. 1. Physiological factors: Avoid eating stimulating food such as spicy hot, so as not to damage the mucous membrane of the gastrointestinal tract and stimulate the secretion of gastric acid, causing stomach pain, acid reflux, heartburn and other symptoms. You can eat millet porridge, rice paste, noodles and other foods to dilute stomach acid, protect the gastrointestinal mucosa, reduce the symptoms of stomach pain; local hot compresses and massage in the stomach to accelerate blood circulation, thereby improving stomach pain, bloating and other symptoms. 2. Pathological factors: such as aluminum thioglycollate, teprenone, bismuth potassium citrate, etc., can form a protective film on the surface of the mucosa of the digestive tract after oral intake, preventing further stimulation of the mucosa by food, gastric acid and so on. After gastroscopy stomach pain at night, and the possibility of gastric perforation, it is recommended to immediately seek medical attention to clarify the diagnosis, targeted treatment. In addition, all of the above drugs should be taken under the guidance of a doctor, not unauthorized use of drugs.