Stomach bloating and acidity caused by diarrhea may be due to indigestion, gastric ulcer, acute gastroenteritis, etc. You should choose the appropriate treatment plan according to the specific cause of the disease, and you can use proton pump inhibitors, antibiotics and other drugs. 1. Dyspepsia: you can adjust your diet, eat regularly, get enough sleep, and use gastric stimulant and digestive drugs, such as domperidone and digestive enzyme tablets. 2. Gastric ulcer: avoid intake of stimulating food, you can use proton pump inhibitors, anti-Helicobacter pylori treatment combined with the use of proton pump inhibitors (omeprazole), amoxicillin, clarithromycin, bismuth potassium citrate and other medications, and if there is a gastric perforation and other complications, if necessary, surgical treatment can be carried out. 3. Acute gastroenteritis: can be rehydration, small meals, if necessary, need to fast, you can use intestinal mucosal protective agents such as aluminum thioglycollate, etc., loperamide to stop diarrhea, antibiotics to fight infection, such as metronidazole and so on. Stomach bloating stomach acid cause diarrhea has more reasons, if there is stomach bloating stomach acid cause diarrhea, should promptly seek medical attention, related drugs should be used under the guidance of a doctor.