The invention discloses a medicine for treating viral myocarditis and a preparation method and belongs to the field of traditional Chinese medicine. The medicine comprises the following active ingredients: a pig bone, folia perillae acutae, gardenia, mother-of-pearl, herba aristolochiae, turnip, polygala tenuifolia, a creeping fig root, allium macrostemon, glabrous sarcandra herb, siegesbeckia orientalis, crepis phoenix, acalypha australis, sangusis draconis, lantana camara and lepisorus thunbergianus. Medicinal materials chosen by the medicine are appropriate in compatibility, and the medicine corresponds with theories of traditional Chinese medicine and modern medicine and pharmacology and has effects of tonifying qi, enriching blood, nourishing yin, clearing away heat, nourishing a heart, soothing nerves, diminishing swelling and alleviating pain. The medicine has a significant curative effect on symptoms such as palpitation, short breath, arrhythmia, chest distress, hypodynamia, spontaneous perspiration, fatigue and precordial pain caused by myocarditis, is short in treatment course, takes effect quickly, avoids recurrence after curing, is safe and reliable, has no toxic or side effects, can achieve the purpose of treating both principal and secondary aspects of a disease, has a miraculous effect and is practical and worthy of wide popularization and application clinically.