The invention discloses wild apricot meal modified fodder for improving mental states and immunity of piglets. The wild apricot meal modified fodder for improving mental states and immunity of the piglets is prepared from, by weight, 200-250 parts of wild apricot meal, 0.6-1.25 parts of sodium carbonate, 320-350 parts of 95% ethyl alcohol, 2-2.4 parts of salt, 42-48 parts of sunflower cakes, 23-25 parts of shrimp powder, 4-5 parts of Seville orange flowers, 2-3 parts of chicken liquid, 0.1-0.15 part of brown sugar, 0.01-0.02 part of aspergillus niger, 54-58 parts of barley flour, 3-4 parts of shallot powder, 15-16 parts of raspberry slag, 3-4 parts of Chinese dates, 4-5 parts of carrots, 2-3 parts of poria cocos, 42-46 parts of corn gluten meal, 2-3 parts of hawthorn fruit powder, 8-10 parts of yeast culture, 3-4 parts of apple juice and 0.3-0.5 part of anise oil. The wild apricot meal modified fodder can improve the immunity and stress resistance of the piglets, improve the digestive function of the piglets, promote healthy growth and weight increment of the piglets, shorten the breeding period, improve the fatten ratio of the piglets and the fodder digestibility, and reduce the fodder consumption.