If there is swelling on both sides of the ribs, first of all, it is necessary to clarify whether there are any internal diseases, especially diseases of the liver, gallbladder, pancreas and spleen, including dysfunction of these organs, enlargement of the spleen, cholecystitis, gallbladder stones, and even malignant tumor diseases, so that early detection and early treatment can be achieved. If the swelling on both sides of the ribs is due to a sterile inflammatory disease of the ribs and surrounding soft tissues, you must first correct your body posture to avoid local compression, avoid sleeping on your stomach for a long time, and avoid repeatedly turning your chest. You can apply local hot compresses and scalding, take oral anti-inflammatory and analgesic drugs such as diclofenac sodium, use local flurbiprofen cream, carry out massage, physiotherapy and sports exercises appropriately. If the pain cannot be effectively relieved, it is necessary to improve the CT examination of the chest to clarify whether there is malignant tumor disease of internal organs, especially lung cancer, which mostly requires surgery.