This invention discloses a gelling material for treating gastric diseases and its preparation method, belonging to the field of pharmaceutical preparation technology. The gelling material is composed of 8-10g of Codonopsis pilosula extract, 6-10g of Bletilla striata extract, 6-8g of Dioscorea opposita extract, 2-4g of Citrus reticulata peel extract, 2-3g of gelatin, 2-4g of xylitol, 0.1-0.2g of citric acid, and 60.8-73.9g of purified water. As a carrier matrix, the gelling material of this invention exhibits good compatibility with commonly used antacids (such as calciumcarbonate), PPIs (such as omeprazole), antibiotics (such as amoxicillin and clarithromycin), and traditional Chinese medicine extracts. During preparation, the above-mentioned active pharmaceutical ingredients (APIs) can be uniformly dispersed in the gel matrix, achieving integrated synergistic treatment of "mucosal protection + acid suppression / bactericidal action" without compromising their chemical stability or causing burst release problems, providing an ideal platform for developing compound gastric disease preparations.