The invention belongs to the technical field of breeding of bamboo rats, and in particular discloses a medicine for preventing and treating enterogastritis in bamboo rats and a preparation method of the medicine. The medicine for preventing and treating enterogastritis in the bamboo rats is mainly prepared by the following materials through baking, extracting, mixing and drying: 10-15 parts of bentonite, 5-9 parts of silicon dioxide, 2-5 parts of sulfaguanidine, 1-5 parts of potassium clavulanate, 1-3 parts of a yeast, 5-10 parts of cherokee rose fruit, 3-8 parts of tea leaves, 3-8 parts of fructus crataegi, 2-8 parts of flos chrysanthemi and 1-5 parts of herba patriniae. The medicine for preventing and treating enterogastritis in bamboo rats provided by the invention, in accordance with principles of cooperative matching and assistant matching, combines chemical medicines and natural Chinese herbal medicines; the medicine mainly functions as diminishing inflammation and killing bacteria, clearing way heat and toxic materials, assisted by effects of clearing intestines and checking diarrhea; the medicine can be used for effectively preventing and treating the enterogastritis in bamboo rats and bring about benefits for healthy growth of the bamboo rats; in addition, the preparation method is simple; and various raw materials can be effectively combined.