Flatulence and water retention, i.e., stomach distension and diarrhea, may be caused by acute gastroenteritis, ulcerative colitis, irritable bowel syndrome, etc., which can be treated under the guidance of a doctor through general treatment, medication, surgery and other methods. 1. Acute gastroenteritis: if overeating, eating cold and unclean food, it will cause gastric distension and diarrhea, need bed rest, drink more water, avoid contact with contaminated food as well as water, correct bad hygiene habits, and also need to be treated by medication, such as ciprofloxacin, levofloxacin, metronidazole, atropine, scopolamine and so on. 2. Ulcerative colitis: immunity, genetics, intestinal microecology, environment, mental and psychological factors can lead to the occurrence of ulcerative colitis, patients can appear bloating, diarrhea and other symptoms, can be treated under the guidance of the doctor through medication, commonly used drugs such as lancet sulfapyridine, but also through the total colorectal resection plus ileal storage pouch anal anastomosis and other surgical procedures for treatment. 3. Irritable bowel syndrome: this disease is mainly affected by psychological, food, intestinal, genetic, autonomic nervous function abnormalities and other factors, which leads to gastric distension, diarrhea, patients need to establish good habits and diet structure, but also under the guidance of the doctor through the treatment of medication, commonly used drugs such as trimethoprim, montelukast. It is recommended that patients go to the hospital in time, under the diagnosis of the doctor, according to the patient’s condition, targeted implementation of the treatment.