The invention discloses a traditional Chinese medicine composition for treating dermatitis and eczema of infants, which consists of oral medicines and externally applied medicines, the oral medicines include 5 to 10 parts of red-rooted salvia root, 5 to 10 parts of suberect spatholobus stem, 5 to 10 parts of the seed of Job stears, 5 to 10 parts of Chinese angelica, 5 to 10 parts of astragalus root, 5 to 15 parts of bighead atractylodes rhizome, 5 to 10 parts of glabrous greenbrier rhizome, 5 to 10 parts of honeysuckle flower, 5 to 10 parts of Philippine violet herb, 5 to 10 parts of Japanese honeysuckle stem, 5 to 10 parts of Chinese wolfberry root bark, 5 to 10 parts of Chinese starjasmine stem and 5 to 15 parts of whiteflower patrinia herb, and the externally applied medicines include 5 to 15 parts of common cnidium fruit, 5 to 15 parts of natural indigo, 10 to 15 parts of spreading hedyotis herb, 10 to 15 parts of cortex dictamnt, 5 to 15 parts of clematis root, 5 to 15 parts of parslane herb, 5 to 15 parts of lightyellow sophora root, 10 to 15 parts of redroot gromwell root, 5 to 15 parts of dried alum, 10 to 15 parts of heartleaf houttuynia herb and 5 to 15 parts of amur corktree bark. The traditional Chinese medicine composition can be easily prepared, the cost is low, the Chinese medicinal materials with different medicinal properties are adopted and scientifically prepared, and the traditional Chinese medicine composition does not have any stimulating effect on the intestines, stomachs and skin of infants, and is safe and effective.