The invention discloses pig feed with a disease prevention function. The pig feed is prepared from the following raw materials in parts by weight: 100 to 110 parts of rapeseed dreg meal, 50 to 60 parts of soybean meal, 50 to 60 parts of wheat meal, 70 to 80 parts of corn meal, 70 to 80 parts of pineapple leaf powder, 15 to 20 parts of chrysanthemum dreg meal, 10 to 12 parts of feeding stimulants and 10 to 12 parts of traditional Chinese medicine preparations; the feeding stimulant is prepared from the following raw materials in parts by weight: 3 to 4 parts of malt meal, 6 to 8 parts of folium artemisiae argyi powder, 2 to 3 parts of rhizoma cyrtomii powder, 3 to 4 parts of liquorice root powder, 2 to 4 parts of lotus seed powder, 1 to 2 parts of cordyceps militaris powder, 1 to 2 parts of rhizoma coptidis powder, 2 to 3 parts of herba elsholtziae powder, 6 to 8 parts of herba verbenae powder, 6 to 7 parts of hyssop powder, 5 to 8 parts of marjoram powder and 1 to 2 parts of broadleaf holly leaf powder; the traditional Chinese medicine preparation is prepared from the following raw materials in parts by weight: 1 to 2 parts of bamboo leaf powder, 3 to 6 parts of hawthorn powder, 1 to 2 parts of radix angelicae sinensis powder, 3 to 6 parts of common andrographis herb powder, 1 to 2 parts of arabian jasmine flower powder, 3 to 6 parts of spina date seed powder, 3 to 6 parts of cortex albiziae powder, 3 to 6 parts of lotus stalk powder and 1 to 2 parts of sophora alopecuroide powder. The pig feed capable of improving the pig disease resistance and achieving the disease prevention effect is prepared through steps of raw material mixing, decocting, pelletizing and the like.