The treatment of white sputum with foam does not have a special drug, in the clinical generally can be taken under the guidance of the doctor cough, expectorant drugs, but also need to carry out relevant examinations to clarify the causes of this symptom, and then carry out symptomatic treatment. Specific treatment and medication are as follows. 1. Coughing and coughing up white foamy sputum are usually caused by respiratory infections, and when such sputum appears, there is a higher chance of viral infections, so it is necessary to go to the hospital to do relevant examinations to confirm the diagnosis, and after the diagnosis is confirmed, you can take antiviral drugs under the guidance of the doctor, such as oseltamivir, ribavirin and so on, to carry on the treatment. 2. If the infection is caused by mycoplasma infection, you need to take azithromycin, erythromycin and other drugs under the guidance of the doctor. 3. If it is caused by allergens, then you need to take oral loratadine, paracetamol and other anti-allergic drugs under the guidance of the doctor to carry out the relevant treatment.