Diarrhea after taking medication for Helicobacter pylori may be caused by the side effects of drugs, intestinal flora imbalance, etc. You can use methods such as stopping the medication, life adjustments, bifidobacteria and other medications. 1. Side effects of drugs: Helicobacter pylori infection needs to take quadruple drug treatment. The common ones are one of the secretion inhibiting drugs such as omeprazole and rabeprazole; two of the antibiotics such as amoxicillin and clarithromycin; and one of the bismuth agents such as bismuth potassium citrate. The above drugs may cause side effects such as diarrhea, vomiting, and allergies. If the diarrhea is not serious, it usually does not need special treatment, and can usually heal itself after stopping the medication. 2. Intestinal flora imbalance: taking antibiotics in the four drugs after H. pylori infection may lead to intestinal flora imbalance and diarrhea symptoms, you can take bifidobacteria triple bacterium, bacillus licheniformis and other drugs to regulate intestinal flora. It is also necessary to eat a light diet, do not take spicy stimulation, greasy, barbecue and other foods, avoid smoking and alcohol. If the symptoms of taking medication for H. pylori diarrhea, it is not recommended to take the medication on your own, it is recommended to go to the hospital to check the blood routine, stool routine and take medication under the guidance of the doctor.