The invention discloses traditional Chinese medicine for treating viral encephalitis. The traditional Chinese medicine is prepared from the following raw materials in parts by weight: 4-10 parts of coastal glehnia root, 3-8 parts of paniculate swallowwort root, 2-7 parts of chastetree fruit, 1-6 parts of excrementum passeris, 1-7 parts of motherwort fruit, 0.5-4 parts of belvedere fruit, 1-6 parts of slenderstyle acanthopanax bark, 1-8 parts of rhizoma corydalis, 2-8 parts of double-teeth pubescent angelica root, 0.2-1.6 parts of ligusticum sinense oliver, 0.5-4 parts of dried body of ground beetle, 2-6 parts of alga, 1-7 parts of fructus persicae immaturus, 0.5-6 parts of apricot and 0.2-1.7 parts of lightyellow sophora root. The Chinese patent medicine is prepared from common Chinese medicinal components most of which are both medicinal and edible, so that the Chinese patent medicine is low in raw material cost, is easy to prepare, and is convenient to use; as proved by years of clinical application and pharmacological research, the Chinese patent medicine has remarkable curative effects on fever, conscious disturbance, convulsions, headache, nausea and emesis caused by brain sickness, and functional lesions such as drowsiness or mental burnout, light neck rigidity and the like of certain patients.