A cough that causes lung pain may be caused by a violent cough, but what to eat for pain relief depends on the specific situation to choose the drug, and to go to the hospital in time for examination to rule out if it is causing pneumonia. Cough and lung pain can be treated by taking some coughing tablets and then adding some antibiotics, such as amoxicillin and roxithromycin in combination, for anti-infection treatment. If the cough is severe, you can take some licorice tablets to stop the cough and dissolve the phlegm. For patients with cough with phlegm, you can use Ambroxol and loquat syrup to dissolve the phlegm. In addition, the usual lifestyle habits are also very important. You should pay more attention to rest, pay attention to cold and warmth to avoid getting cold and triggering infection, and focus on a light diet in your diet.