The invention discloses a traditional Chinese medicine composition for treating gastric ulcer. The traditional Chinese medicine composition comprises the following raw materials in parts by weight: 8-10 parts of radix astragali, 5-7 parts of radix notoginseng, 2-4 parts of caulis bambusae in taenia, 5-8 parts of herba pogostemonis, 3-4 parts of cortex lycii, 2-4 parts of rhizoma cimicifugae, 6-8 parts of herba plantaginis, 3-4 parts of radix rehmanniae preparata, 1-2 parts of semen cassiae, 5-7 parts of ophiopogon japonicas, 2-4 parts of radix angelicae sinensis, 5-6 parts of ardisia crenata sims, 2-4 parts of adiantum capillus-veneris, 5-8 parts of rhizoma acori tatarinowii, 4-5 parts of calcined keels, 2-4 parts of pollen typhae, 5-6 parts of crisped dock root, 3-5 parts of rhizoma wenyujin concisum, 2-4 parts of massa medicata fermentata, 1-3 parts of all-grass of twinflower wedelia, and 2-4 parts of herba piperis paepuloidis. The traditional Chinese medicine composition for treating gastric ulcer is prepared by scientifically mixing a plurality of carefully chosen medicine raw materials, active ingredients of all raw materials influence one another and play a synergistic effect, and achieve the efficacies of strengthening the spleen and stomach, purging fire and clearing away heat, promoting digestion and relieving stasis, promoting the qi circulation and dissipating stasis, relieving pain and dissipating cold and promoting digestion and stagnation, and the like, and the traditional Chinese medicine has a good treatment effect on patients with gastric ulcer, and has the advantages that the administration course is short, relapse is difficult, and the like.