The invention discloses a synthetic drug for treating gastroenteritis and a preparation method thereof. The synthetic drug is prepared from the following raw materials in parts by weight: 8 to 12 parts of astragalus, 10 to 14 parts of semen coicis, 8 to 12 parts of codonopsis pilosula, 9 to 15 parts of poria cocos, 7 to 12 parts of carbonized hair, 9 to 11 parts of red halloysite, 6 to 15 parts of white paeony root, 4 to 8 parts of rhizome atractylodis macrocephalae, 4 to 8 parts of radix prismatomeris connatae, 5 to 7 parts of radix bupleuri, 5 to 7 parts of mangnolia officinalis, 4 to 8 parts of coptis chinensis, 8 to 20 parts of endothelium corneum gigeriae galli and 10 to 15 parts of liquorice. The preparation method comprises the following steps: performing reflux extraction on astragalus, semen coicis, poria cocos, radix bupleuri, mangnolia officinalis, coptis chinensis and liquorice in an alcohol extraction manner, thereby obtaining alcohol extraction reflux. The prepared synthetic drug has small toxic and side effects in clinical application and does not cause damage of gastrointestinal mucosa; moreover, the designed preparation method can be used for efficiently and rapidly preparing the synthetic drug.