The invention discloses a drug for treating viral pneumonia. The drug is composed of the following components in parts by weight: 30 to 50 parts of glutinous rice, 20 to 35 parts of cereal husk, 14 to 28 parts of cistanche, 12 to 29 parts of morinda officinalis, 18 to 28 parts of cassytha filiformis, 13 to 23 parts of rubus idaeus, 17 to 22 parts of actinolite, 15 to 25 parts of epimedium, 19 to 21 parts of catunaregam spinosa, 11 to 29 parts of ajuga nipponensis, 13 to 26 parts of rhodiola rosea, 6 to 8 parts of Chinese prickly ash, 5 to 9 parts of ginger, 7 to 10 parts of Chinese magnoliavine from Jizhou island, 4 to 6 parts of earthworm, 3 to 5 parts of horse bone meal, 2 to 5 parts of snake bile, 3 to 5 parts of toad skin, and 1 part of macamide. The drug comprises Chinese herbals and macamide, has an excellent effect on treating viral pneumonia, has the functions of boosting qi, tonifying the kidney, freeing collaterals, and activating blood, is capable of relieving the symptoms of fever, chest distress and panting of viral pneumonia, and has a curative effect far better than that of conventional traditional Chinese medicines and western medicines.