Stomach pain with diarrhea, that is, epigastric pain with diarrhea should be considered as inflammation of the gastrointestinal tract, which may be related to disorders of the gastrointestinal tract function, uncontrolled eating and unhygienic eating. If the pain is paroxysmal colic, that is, the pain lasts for about 15 to 20 minutes, after which the pain decreases or disappears, and then starts again after about some time, with frequent diarrhea, it may be a symptom of acute gastroenteritis. This kind of colic is caused by gastrointestinal spasm. If the pain is severe, the diarrhea is frequent and heavy, or accompanied by fever, you need to go to the hospital to avoid severe inflammation or dehydration. You can take chewable tablets of magnesium aluminum carbonate or belladonna tablets by yourself, not painkillers like painkillers. Acute gastroenteritis can easily turn into chronic gastrointestinal symptoms if left untreated. It is recommended that you do not eat greasy, spicy, poorly digested irritating food and do not drink milk during your illness. Light and easy to digest rice porridge and soft noodles are more suitable, drink more water and supplement salt appropriately. Pay attention to rest, live a regular life, avoid strain, do not stay up late, soak your feet with hot water more often and pay attention to keep warm, hot compresses on the stomach is beneficial. Generally speaking, the treatment of acute gastroenteritis is about three to seven days. If you have repeated diarrhea, you should still go to the hospital to see a doctor, and in serious cases, you may also need intravenous infusion treatment.