The causes of stomach pain when eating something are gastric ulcer, duodenal ulcer, gastrointestinal dysfunction and so on. 1. Gastric ulcer: when the gastric mucosa is broken, ulcers are easy to appear, and when eating, the peristalsis of the stomach will produce stimulation, which in turn produces painful symptoms. It is recommended to take proton pump inhibitors such as lansoprazole and rabeprazole to inhibit gastric acid, and at the same time, use gastric mucosal protectors such as bismuth potassium citrate and colloidal bismuth pectin in combination in order to eliminate the ulcers and alleviate the pain symptoms. 2. Duodenal ulcer: this is mainly due to the inflammation of the duodenal mucosa caused by the digestive action of gastric juice. During eating, gastric acid is secreted at an accelerated rate, causing irritation and pain at the duodenal ulcer. You can take oral ranitidine, omeprazole and other drugs to treat, followed by the use of targeted drugs for anti-infection treatment. 3. Gastrointestinal dysfunction: Gastrointestinal dysfunction can easily lead to irritable bowel syndrome, which can lead to abdominal pain, stomach pain after eating, diarrhea and other symptoms, thus causing stomach pain after eating something. The treatment of this disease is mainly to take gastric power drugs, and according to other symptoms of targeted medication. Stomach pain after eating may also be caused by other diseases, in addition to drug treatment, but also need to follow the doctor’s instructions, standardized treatment.