Intestinal flatulence can be prevented by improving lifestyle and dietary habits, taking medication, surgery and other methods. 1. Improve living and eating habits: usually adjust the diet structure, avoid eating sweet potatoes, beans and other easy to produce gas food, avoid cold, spicy and other stimulating food and greasy and other difficult to digest food, so as not to aggravate the burden on the stomach and intestines. At the same time, pay attention to develop good eating habits, avoid eating in the wind, talking loudly during meals, etc., quit smoking and drinking, avoid staying up all night, and strengthen the exercise appropriately. 2. Take drugs: If the patient himself suffers from gastrointestinal diseases, you can follow the doctor’s instructions to take drugs to prevent intestinal flatulence. If you suffer from dyspepsia, you can take digestive enzymes such as digestive enzymes; if you suffer from chronic gastritis, peptic ulcer, etc., you can take omeprazole, bismuth potassium citrate and other medications, accompanied by Helicobacter pylori infection, you can also take amoxicillin and other antibiotics at the same time. If you suffer from intestinal dysbiosis, you can take probiotics such as bifidobacteria; if accompanied by intestinal motility abnormalities, you can take mosapride, domperidone and other prokinetic drugs. 3. Surgery: For patients suffering from intestinal obstruction, intestinal polyps, intestinal tumors and other diseases, surgery can be considered. If the patient has long-term or repeated intestinal flatulence, it is recommended to consult a doctor in time to identify the cause of the disease and carry out targeted treatment. Drugs need to be taken in strict accordance with the doctor’s instructions, not self-medication, so as not to delay or even aggravate the condition.