The invention, belonging to the field of Chinese herbal medicine, relates to traditional Chinese medicine granules for treating epigastric pain and a preparation method thereof. The granules originate from an ancestral secret recipe of a famous old herbalist doctor, and are suitable for various stomach troubles and epigastric pain caused by various reasons, especially have obvious clinic curativeeffect on stomachache, gastrectasia, anorexia, dyspepsia and other clinical symptoms. Many years clinical application proves that the curative effect is obvious. The granules have wide adaptability, substantial curative effect, and no toxic and side effect, treat both the incidental and fundamental aspects simultaneously, and have the characteristics of reasonable composition, advanced technology, convenient taking, small dosage, controllable quality, safety, reliability and the like. The granules have effects of promoting digestion, transforming stagnation, rectifying qi, harmonizing the stomach, relaxing vein, relieving pain and the like, and can be used for acute and chronic gastricism, gastroduodenal ulcer, atrophic gastritis, functional dyspepsia, prevention of stomach cancer, and the palliative treatments of related symptoms of stomach cancer patients. The granules are prepared by combining traditional Chinese medicine experiences and modern medicine production technology tightly, and are worth to be popularized and applied.