The invention provides a food capable of treating diarrhea, which is mainly composed of special carbohydrates and combined with other nutritional ingredients for regulating the intestines and stomach. Mix one or more of commercially available carbohydrates such as rice flour, flour, edible starch, and edible dextrin at a certain temperature or fry for a certain period of time to make a burnt-yellow powder containing caramelized sugar; Baking yam, hawthorn, dark plum, kudzu root, cinnamon, Atractylodes macrocephala, licorice, clove, nutmeg, Poria cocos, barley, Huoxiang, amomum, jujube, white lentils and other Chinese herbal medicines that can strengthen the spleen and stomach, or Stir-fry until slightly yellow, grind into powder; add a certain amount of whey protein, probiotics, prebiotics, glutamine, vitamin A, vitamin B, vitamin B2 and salt. The fried or baked food for treating diarrhea of the invention can be absorbed by the intestinal tract, is suitable as food for patients with diarrhea, and is easily digested and absorbed by patients, so that patients with diarrhea can recover as soon as possible without side effects and has stable curative effect.