Stomach bloating and pain unable to sleep may be caused by indigestion, gastritis, peptic ulcer, stomach cancer. 1. Indigestion: The main manifestation of indigestion is postprandial bloating, accompanied by delayed gastric emptying and reduced gastrointestinal motility. There will be uncomfortable symptoms such as bloating, stomach pain and difficulty in sleeping, which may be related to gastritis, Helicobacter pylori infection, mental and psychological factors. 2. Gastritis: including acute gastritis, chronic gastritis, chronic superficial gastritis, chronic atrophic gastritis, bile reflux gastritis, all of which can be manifested as bloating and pain in the stomach area. 3. Peptic ulcer: Peptic ulcer can cause discomfort in the upper abdomen. After a meal, excessive secretion of gastric juices can irritate the gastric mucosa, causing painful bloating and difficulty in sleeping. Duodenal ulcer manifests as hunger pain or pre-meal pain, with the pain site in the stomach area and the nature of distension. 4. Gastric cancer: Early gastric cancer has no obvious symptoms, but in middle and late stages, it can be manifested as gastric distension and indigestion-like symptoms. One should pay attention to diet control and avoid overeating. You should not eat too much cold, spicy and stimulating food, and should not do strenuous exercise within one hour after meal. If the symptoms of stomach bloating and pain do not improve, it is necessary to go to the hospital in time to determine the cause, and then under the advice of the doctor for treatment.