Flatulence may be caused by bad eating habits, generally do not need medication, if it is caused by acute gastroenteritis, peptic ulcer and other diseases, need to be taken for the cause of the drug treatment, surgical treatment, commonly used drugs are bifidobacterium, cimetidine, scopolamine, lansoprazole, bismuth potassium citrate, cisapride and so on. 1. Bad eating habits: if you eat when swallowing, or say while eating, you will inhale a lot of air, then cause gastric flatulence, generally do not need medication, appropriate massage, walking, increase gastrointestinal motility can be relieved. 2. Acute gastroenteritis: common symptoms include bloating, diarrhea, abdominal pain and so on. Patients need to follow the medical advice to apply bifidobacteria, lactobacilli and other probiotics, as well as antispasmodic drugs such as atropine, scopolamine and other antispasmodic drugs. 3. Peptic ulcer: mainly manifested as epigastric pain, abdominal distension, anorexia and so on. Patients need to follow the medical advice to apply cimetidine, ranitidine and other H2 receptor antagonists, as well as omeprazole, lansoprazole and other proton pump inhibitors. There are also antibiotics such as amoxicillin and levofloxacin, as well as gastric mucosal protective drugs such as bismuth potassium citrate and aluminum thiosulfate. There are also gastrointestinal motivators such as cisapride and domperidone. If there are serious complications, surgical treatments such as vagotomy and major gastrectomy need to be considered. To summarize, when there is gastric flatulence, if you exclude that it is caused by improper diet, you need to go to the hospital, actively treat the primary disease, and use medication under the guidance of the doctor.