Rib pain may be caused by fracture, costochondritis, pleurisy, etc., and need to be further diagnosed by a doctor. 1. Fracture: When the ribs are fractured due to trauma, it may cause localized swelling and pain. 2. Costal chondritis: If sleeping for a long time in a bad position, it may irritate the costal cartilage for a long time, which may cause aseptic inflammation, and then symptoms such as rib pain may appear. 3. Pleurisy: when suffering from pleurisy, due to the stimulation effect of inflammation, rib pain may occur. It is recommended that people with rib pain should go to regular hospitals in time to clarify the cause of the disease and carry out standardized treatment under the guidance of doctors to avoid delaying the condition.