The causes of pain under the ribs in the left and right upper abdomen mainly include the following aspects: the first cause is considered to be caused by the digestive and absorption disorders of the gastrointestinal tract of the body. Mostly due to the usual diet is not careful, eat more spicy stimulation or overeating, resulting in slow peristaltic function of the gastrointestinal tract, and then cause pain. The symptoms of pain are mainly in the upper abdomen and under the ribs. It can be clarified by gastroscopy or colonoscopy, and needs to be treated with medications such as morpholine or trimethoprim maleate to strengthen the spleen and eliminate food. The second cause is due to intestinal adhesions or intestinal obstruction. Mostly due to the history of previous surgery, or recent diet carelessness and other causes of intestinal content discharge obstruction, and then lead to intestinal obstruction caused by abdominal pain. The nature of the pain is usually distension, and is accompanied by constipation and other symptoms. The pain can be clarified through abdominal X-ray examination, and the treatment requires the application of enema and gastrointestinal decompression and other symptomatic treatment.