The appearance of yellow sputum in the throat is a symptom of upper respiratory tract infection, and at this time it may be a bacterial infection of the pharynx, larynx, or tonsils, which may cause suppuration. First of all, there will be inflammatory exudation from the site of inflammation, and phagocytes, eosinophils, and basophils in the body will also gather at the site of inflammation and engulf foreign bacteria, then these cells will undergo lysis and necrosis, releasing inflammatory substances into the pharynx, which will mix with epithelial cells in the pharynx to form yellow sputum. Antibiotics are needed to treat this condition. Antibiotics that are more effective for upper respiratory tract infections are penicillin antibiotics or cephalosporin antibiotics. If there is no allergy, you can take cefaclor or amoxicillin for treatment; if there is allergy, you can switch to macrolide azithromycin for treatment.