The invention provides a pest-repelling and bacterium-inhibiting fertilizer prepared from Chinese herbal medicine extract. The fertilizer is characterized in that the fertilizer comprises, by weight,50-230 parts of urea, 50-130 parts of monoammonium phosphate, 50-400 parts of potassium nitrate, 10-200 parts of mineral source potassium fulvate and 10-100 parts of the Chinese herbal medicine extract, the Chinese herbal medicine extract is prepared by mixing Chinese herbal medicines according to a certain ratio and extracting the obtained mixture, and the Chinese herbal medicines comprise tartary buckwheat, licorice root, Chinese Gall, kelp, Tamarix chinensis, seaweed, Figwortflower Picrorhiza Rhizome, Rhizoma Cibotii, fructus cnidii, neem seeds, anise, Areca catechu, pomegranate rind, RadixAucklandiae, Radix Asparagi, Sophora flavescens, Vietnamese Sophora Root, Chinese prickly ash, Kaempferia galanga L., Camptotheca acuminate, Radix Euphorbiae Ebractealatae, Rhizoma curcumae longae, Rhizoma Arisaematis, Cynanchum paniculatum, oysters, seashells, crab shells, shrimp shells, oyster shells, tangerine peel, orange peel and Herba Houttuyniae. The provided pest-repelling and bacterium-inhibiting fertilizer prepared from Chinese herbal medicine extract has no damages to crops, can supplement nutrients required for plant growth and efficiently repel pests and inhibit bacteria, and caneffectively solve the problems in the background art.