The invention discloses a Chinese medicine prescription for treating acute and chronic gastritis and the preparation method thereof, which is prepared by ten Chinese medicines of raw rhizoma atractylodis, cortex magnoliae officinalis, citrus chachiensis hortorum, raw liquoric root, fried white paeony root, raw malt, dandelion, cablin potchouli herb, sepium and common bletilla pseudobulb, etc. The raw medicines are matched with excipient and corrective to be prepared into granular formulation or micro-pills; the invention can treat acute and chronic superficial gastritis, erosive gastritis, bile reflux gastritis and duodenal bulbar inflammation and so on by oral administration. The invention has the efficacies of regulating the middle warmer, driving the stomach, promoting qi and stopping pain.