The invention discloses a traditional Chinese medicine composition for treating a gastroesophageal reflux disease and traditional Chinese medicine granules as well as a preparation method thereof. Thetraditional Chinese medicine granules contain 100 parts by weight of traditional Chinese medicine extract, 50 parts by weight of dextrin and 8 parts by weight of ethanol solution. A traditional Chinese medicine extracting method comprises the following steps: taking 6 parts by weight of radix bupleuri, 12 parts by weight of fructus aurantii, 3 parts by weight of coptis chinensis, 3 parts by weight of fructus evodiae, 9 parts by weight of stir-baked fructus gardeniae, 9 parts by weight of herba inulae, 12 parts by weight of mangnolia officinalis, 15 parts by weight of rhizoma polygonati and 15parts by weight of calcined concha arcae, adding 10 times of water and extracting for three times, wherein the extracting time per time is 1.0 h; combining decoction liquid, filtering, concentratingand drying. The traditional Chinese medicine composition for treating the gastroesophageal reflux disease and the traditional Chinese medicine granules as well as the preparation method thereof disclosed by the invention have the benefits that an extraction process is optimized by adopting an orthogonal experiment method and a weighted analysis method, and the yield of optimized dry extracts and the contents of naringin and gardenin are determined, so that an optimum extraction process is obtained; a preparation process is further optimized by adopting a single-item screening method, and the molding rate, the solubility and the granulation difficulty of the granules prepared by the optimized process are investigated, so that an optimal preparation process is obtained.