The invention discloses a medicinal and edible composition capable of improving the immunity and a preparation method of the medicinal and edible composition. The composition is composed of the medicinal and edible medicinal materials including wheat seedlings, radix ginseng, arillus longan, mulberries, semen sesami nigrum, rhizoma polygonati and the like, as well as fructooligosaccharide and galactooligosaccharide, the integral regulation advantages of the compound traditional Chinese medicine are exerted, the effect of improving the immune functions is obvious, and the experiment proves that the medicinal and edible composition can reduce the toe swelling thickness of normal mice, and improve the activity of the NK cells, the level of the serum hemolysin, the number of antibody-producing cells, the carbon clearance phagocytosis index and the phagocytosis capacity for chicken erythrocytes of macrophagocytes.