The invention relates to a medicament for treating pediatric respiratory tract infection and pulmonary infection, which is prepared from campanumaea pilosula, giant knotweed, whiteflower hogfennel root, almond, pummelo peel, willowleaf swallowwort rhizome, indigowoad root, Ningpo yam rhizome, paniculate swallowwort root, Indian trum etflower seed, Chinese magnoliavine fruit, unibract fritillary bulb, pinellia tuber and the like. The medicament has the effects of resisting inflammation, resisting viruses, and relieving cough and asthma, and is used for treating diseases such as acute upper respiratory tract infection (cold and fever), pediatric pneumonia, bronchitis, chronic recurrent trachitis, pulmonary infection, whooping cough and the like. The medicament takes the giant knotweed and the indigowoad root for clearing heat and detoxicating, and cooling blood and disinhibiting throat, the whiteflower hogfennel root for dispelling wind heat of lungs, the almond, the pummelo peel, the willowleaf swallowwort rhizome, the pinellia tuber and the unibract fritillary bulb for eliminating phlegm and relieving cough, the paniculate swallowwort root, the Indian trum etflower seed and the Ningpo yam rhizome for clearing heat and disinhibiting dampness, resisting inflammation, relieving cough, resisting allergic reaction and resisting allergy, and the campanumaea pilosula for tonifying center vitality, strengthening spleen and tonifying lung, supporting right and expelling evil, relieving cough, improving immunity of patients, diffusing lung vitality and clearing phlegm and heat. Medicinal materials such as tatarian aster root and platycodon root are added into the medicament on the basis of the compatibility so as to add the effects of eliminating phlegm and preventing asthma.