There are many reasons for coughing up yellow pus sputum, such as upper respiratory tract infection combined with bacterial infection, bronchiectasis, staphylococcal pneumonia and so on. 1. Upper respiratory tract infection combined with bacterial infection: one of the common causes, oral penicillin, first generation cephalosporins and so on can be used according to the local epidemiological history and experience. 2. Bronchiectasis: the presence of purulent sputum can be used ampicillin, amoxicillin and other antibiotics, but also the use of aminoglutethimide, dextromethorphan and other drugs for cough and sputum treatment. 3. Staphylococcal pneumonia: emphasize the early removal and drainage of the primary lesion, the use of sensitive antimicrobial drugs, can use cefuroxime sodium, amikacin, amoxicillin and so on for treatment. There are many reasons for coughing up yellow pus sputum, it is recommended to go to the hospital in time, to clarify the cause of the disease, under the guidance of the doctor for treatment. The above drugs are used as prescribed by the doctor.