Cough with thick phlegm is mostly caused by bacterial infection, you can take penicillin, cephalosporins, macrolides, quinolones and other antibiotics for anti-infection treatment. 1. Penicillin: commonly used drugs are amoxicillin clavulanate potassium, penicillin V potassium tablets and so on. 2. Cephalosporins: commonly used drugs include cefuroxime, cefaclor, cefradine, etc. 3. Macrolides: commonly used drugs are Erythromycin Succinate, Azithromycin, Madicillin and so on. 4. Quinolone anti-inflammatory drugs: commonly used drugs are norfloxacin, ciprofloxacin, etc. Children under 18 years old are prohibited to use. These drugs can have side effects such as dizziness, nausea, vomiting, allergy, affecting cartilage development, etc. They need to be used under doctor’s guidance when using these drugs for treatment.