Cough with yellow phlegm needs general treatment, causative treatment and symptomatic treatment in order to get well quickly. 1. General treatment: For example, a light diet and drinking plenty of water may be useful for recovery. 2. Causal treatment: For example, if yellow sputum is caused by bacterial pneumonia, antibiotics such as moxifloxacin and amoxicillin-clavulanate potassium may be needed; for example, tuberculosis combined with bacterial infection can also cause yellow sputum, which may need to be treated with the above mentioned antibiotics plus anti-tuberculosis medicines such as ethambutol, pyrazinamide, and rifampicin. 3. Symptomatic treatment: such as ambroxol hydrochloride dispersible tablets, acetylcysteine effervescent tablets and other phlegm drugs, to promote the discharge of phlegm will play a corresponding role. To sum up, when coughing with yellow phlegm, you need to consult a doctor in time, and individualized treatment under the guidance of the doctor.