Flatulence can be caused by dietary factors, indigestion, chronic gastritis, peptic ulcer, etc. There is no such thing as what is the best medicine to take, but only the best medicine for the patient. 1. Dietary factors: eating gas-producing foods such as onions, potatoes, soy products, etc., resulting in flatulence, usually do not need to take medication, stop eating gas-producing foods can gradually improve. 2. Indigestion: Domperidone, Itopride, etc. can be given to increase gastrointestinal power combined with pepsin and other drugs to promote digestion and improve flatulence. 3. Chronic gastritis: can be given antacids, such as omeprazole, rabeprazole, etc., to inhibit gastric acid secretion, combined with aluminum thiosulfate, magnesium aluminum carbonate and other gastric mucosal protection drugs to improve gastric flatulence. 4. Peptic ulcer: if there is Helicobacter pylori infection, amoxicillin, clarithromycin, bismuth potassium citrate, omeprazole and other drugs can be given to treat, if there is no Helicobacter pylori infection, can be given to the proton pump inhibitors such as omeprazole, rabeprazole and so on. If you have flatulence, it is recommended to consult a doctor in time to clarify the cause of the disease, treat the cause, and use medication under the guidance of a physician as prescribed by the doctor.