The invention discloses a traditional Chinese medicine granule for treating viral hepatitis. The traditional Chinese medicine granule is prepared from the following raw material in parts by weight: 16-26 parts of herba artemisiae scopariae, 12-26 parts of radix scutellariae, 12-20 parts of Melilotus officinalis, 10-20 parts of fructus gardeniae, 8-16 parts of herba lysimachiae, 12-16 parts of herba hedyotidis diffusae, 6-18 parts of herba lophatheri and 3-9 parts of radix glycyrrhizae. The traditional Chinese medicine composition has the effects of clearing and activating channels and collaterals, promoting diuresis to alleviate edema, strengthening liver and harmonizing stomach, tonifying kidney and spleen, nourishing yin and producing sperm, improving body immunity, clearing away heat toxin, dispelling dampness and cold and removing RNA transfection caused by virus, and routes of transmission of the virus are blocked from the root; the traditional Chinese medicine composition is suitable for treating hepatitis B from HBsAg,HBeAg and HBcAb test positive to HBsAg, HBeAb and HBcAb test positive and from HBsAg, HBeAb and HBcAb test positive to negative, and also has very good curative effects on hepatitis A, hepatitis C and hepatitis E.