There are many reasons why patients have stomach pain and bloating, which may be caused by improper diet, chronic gastritis, peptic ulcer, etc. It is necessary to consult a doctor in time to clarify the cause of the disease, and follow the doctor’s instructions to choose digestive drugs, proton pump inhibitors, antibiotics, H2 receptor antagonists and other drugs for treatment. 1. Improper diet: If the patient eats too much, there will be stomach pain and flatulence, should be prescribed oral promotion of gastrointestinal peristalsis, improve digestion of drugs, such as lactobacillus tablets, gastrointestinal tablets, domperidone and so on. 2. Chronic gastritis: patients with chronic gastritis mainly manifested as epigastric discomfort, fullness, belching and other symptoms, should be prescribed the use of proton pump inhibitors, such as omeprazole, rabeprazole, etc.; with bismuth, such as colloidal bismuth, bismuth potassium citrate, etc.; if there is Helicobacter pylori infection, you can add antibiotics, such as amoxicillin, metronidazole and so on. 3. Peptic ulcer: typical symptoms of epigastric pain, epigastric distension, belching, anorexia, acid reflux, etc., should be given in accordance with the medical advice of the proton pump inhibitors, such as omeprazole, pantoprazole, etc.; can also be used to protect the gastric mucosa of the drugs, such as magnesium sulfate, aluminum sulfate, etc.; H2-receptor antagonists, such as famotidine, ranitidine, etc.. The above drugs should be used under the guidance of professional physicians. It is recommended that patients with symptoms of stomach pain and flatulence should go to the hospital in time, and be treated as early as possible under the guidance of a professional physician.