Chest pain caused by coughing may be related to the right side of pneumonia, pleurisy, spontaneous pneumothorax, pleural effusion and other reasons, the treatment of drugs to fight infection, cough, surgery and other methods, it is recommended to timely hospital diagnosis and treatment. 1. Pneumonia: there will be fever, cough, sputum, chest pain, loss of appetite symptoms, should go to the regular hospital, imaging tests can be a clear diagnosis, the treatment is mainly oxygen, anti-infection, cough and sputum, fever and other symptomatic treatment. 2. Pleurisy: there may be chest pain, chest tightness, dyspnea, cough and other symptoms, the main cause of treatment, such as antibiotics to control infection, anti-tuberculosis treatment (tuberculosis pleurisy), etc., and at the same time to be relieved of cough, analgesia, antipyretic and other symptomatic treatment, for the amount of pleural effusion is relatively large, it is necessary to carry out closed drainage thoracic puncture treatment. 3. Spontaneous pneumothorax: it may be caused by severe coughing, accompanied by dyspnea. Treatment is aimed at eliminating the cause of the disease and promoting the expansion of the lungs. Oxygen can be inhaled, bed rest, symptomatic treatment of cough, asthma and pain relief can be carried out. For the existence of dyspnea, you can choose the closed chest drainage exhaust treatment, restore the compressed lung tissue, reduce the symptoms. 3. Pleural effusion: pleural effusion can stimulate the pleura and cause chest pain, which requires closed chest drainage, culture of pleural fluid, biochemistry of pleural fluid, routine examination of pleural fluid, etc., to clarify the cause of the disease, and treatment according to the cause of the disease. Chest pain caused by coughing should be timely regular hospital consultation, clear cause, as soon as possible to take the appropriate treatment program, so as not to delay the condition.