The invention discloses an ecological pig feed, and relates to the technical field of processing of livestock feeds. The ecological pig feed is prepared from the following raw materials: mulberry leaf powder, traditional Chinese medicine powder, a mineral feed, a protein feed, vegetable oil, a microorganism yeast, inorganic salt, barleygreen, straw pulp, hermetia illucens and vegetable pulp. The preparation process of the ecological pig feed is as follows: respectively grinding the protein feed, hermetia illucens and mineral feed into fine materials, uniformly mixing the fine materials with the mulberry leaf powder, traditional Chinese medicine powder, vegetable oil, microorganism yeast, barleygreen, inorganic salt, vegetable pulp and straw pulp, drying at the temperature of 45-60 DEG C, grinding, and treating by a feed machine to obtain the ecological pig feed. The ecological pig feed is comprehensive in nutrients, high in feed conversion ratio, enhanced in immunocompetence, increased in growth speed, improved in meet quality, suitable for raising a feeder pig to a fattening stage, applicable to raising cow or sheep to a fattening stage, and also available to raising chickens or ducks to a fattening stage.