When children are suffering from mycoplasma infection, macrolide antibiotics are commonly used for treatment. Among macrolide antibiotics, azithromycin, erythromycin and other drugs are commonly used. Azithromycin injection is commonly used in children with mycoplasma infection symptoms are more obvious, and mycoplasma infection is more serious, through the injection of azithromycin for mycoplasma treatment, injection time should be strictly according to the weight of the child for medication. Azithromycin is a macrolide antibiotic, which has certain damage to the liver of children, during the application of the drug, according to the age of the child and the actual situation of the drug, the child’s immune function, liver function and other aspects to be measured. At the same time, the drug has a certain stimulation to the gastrointestinal function of the pediatrics, often causing nausea, vomiting diarrhea and other phenomena, so in the application of azithromycin treatment, we must closely observe the situation of the pediatrics, and actively give treatment.