The invention discloses a medicine for treating intestinal obstruction of infants and a preparation method thereof. The medicine comprises the following raw herbal materials: Chinese buckeye seeds, securidaca inappendiculata, tender catchweed bedstraw, helicteres isora, calophyllum membranaceum, jasminum laurifolium, portulaca oleracea, fructus cannabis, pericarpium arecae, edible fat made from milk, vernonia andersonii, stephania longa, orobanche coerulescens, fruit of highland barley malt, ixeris denticulata, pericarpium citri reticulatae viride, fructus aurantii, patrinia heterophylla, eretmochelys imbricata, rumexpatientia, scutellaria barbata, crotalaria tetragona, sida szechuensis, tuber or root of smilax stans, semen cassia, olibanum, astilbe chinensis, breynia fruticosa, perilla fruit, vigna umbellata, angelica sinensis, euonymus phellomana, red peony root and buckwheat. The medicine has the benefits as follows: the medicine has the efficacy of regulating qi, removing stasis, activating blood, moistening the intestines and relieving dyspepsia, meanwhile, has the effects of clearing heat, cooling blood, guiding qi downwards, removing intestinal obstruction, and resisting infection, and has the advantages of quick action, high improvement rate, definite curative effect, short treatment course, no toxic or side effect, low cost and the like.