When coughing up yellow sputum, consider bacterial infection caused by bronchitis or pneumonia, this time need to be treated with antibiotics. Commonly used is penicillin antibiotics or cephalosporin antibiotics, can be injected with penicillin or cefoperazone, ceftriaxone, the effect is good. It is also necessary to take cough and phlegm medicine, for the effect of phlegm is better to have Ambroxol hydrochloride or Ambrotero oral solution, lung power cough combination for cough yellow phlegm effect is also good. In addition to bronchitis and pneumonia, there is also the possibility of bronchiectasis, which can be diagnosed only after a chest CT. If it is indeed a case of bronchial dilatation, it is necessary to discharge sputum every morning, which is more effective for the recovery of bronchial dilatation, and it is also necessary to carry out anti-infection treatment during the acute stage.