Bloating of the stomach and ribs may be caused by gastrointestinal diseases, liver and gallbladder diseases, emotional factors and other reasons. 1. Gastrointestinal diseases: when suffering from dyspepsia, gastritis, enteritis, peptic ulcer and other diseases, it may cause the symptoms of bloating in the stomach and two ribs, and may also be accompanied by loss of appetite, nausea, vomiting and other symptoms. 2. Liver, gallbladder and pancreatic diseases: Hepatitis, liver cancer, cholecystitis, gallbladder stones, pancreatitis, pancreatic cancer and other diseases may cause bloating in the stomach and ribs. 3. Emotional factors: if there is a long time of emotional tension, anxiety, etc., it may also cause intermittent symptoms of bloating and swelling of the stomach and ribs. There are many causes of bloating and swelling of the stomach and ribs, so it is recommended to go to the hospital in time, complete the examination, clarify the cause of the disease, and follow the doctor’s instructions to treat the cause of the disease.