The invention discloses a pharmaceutical composition for treating helicobacter pylori infectious gastropathy and a preparation method of the pharmaceutical composition. The pharmaceutical composition comprises the following medicinal materials: common andrographis herb, rhaphidophora hongkongensis, semen lepidii, hovenia dulcis thumb, hairystalk loosestrife herb, baikal betony rhizome, polygonum dissitiflorum, palmate girardinia herb, rhizoma bletillae, peucedanum morisonii bess, chinaroot greenbrier, stephania sinica diels, wild grape vine, semen coicis, phoenix-tail fern, sculellaria barbata, stichopus japonicus, alpinia katsumadai, agastache rugosus, oriental wormwood, talcum, rhizoma acori graminei, scutellaria baicalensis, fructus forsythiae, blackberry lily, lysimachia christinae hance, rhizoma corydalis, radix glehniae and black jasmine. The pharmaceutical composition has the beneficial effects that the pharmaceutical composition has the efficacy of clearing away heat and toxic materials, has the effects of reinforcing the stomach, protecting a membrane, dredging qi movement, clearing away fire and benefiting qi, is mainly used for treating helicobacter pylori infectious gastropathy, is suitable for long-term recuperation, is free of an effect on appetite and beneficial to recovery of the organism, and has the advantages of fast acting, high effective rate, accurate curative effect, short treatment course, no toxic or side effect and low price; and cold and heat are taken into account.