The invention discloses a spleen and stomach strengthening preparation for treating stomachache, wherein the preparation is mainly prepared from the following raw materials in parts by mass: 9-13 parts of coptis chinensis, 7-15 parts of rhizome of largeleaf Japanese ginseng, 9-16 parts of beet root, 6-14 parts of betel nut, 10-15 parts of bigfruit phymatopsis herb, 8-16 parts of creepingthymeleaf sandwort herb, 6-13 parts of girald daphne bark, 7-12 parts of ground common crocosmia, 9-14 parts of dentiferous dendropanax root and stem, 10-13 parts of burmann cinnamon bark, 8-15 parts of chinarue, 11-14 parts of girald acanthopanax bark, 9-15 parts of pilea cadierei and 7-13 parts of blueflower cicerbita root. The spleen and stomach strengthening preparation for treating stomachache disclosed by the invention has functions of warming stomach for dispelling cold, promoting qi circulation and relieving pain, promoting digestion and relieving dyspepsia, soothing liver and relieving depression, and removing dampness-heat, and the preparation is significant in curative effect on stomachache.