The invention discloses an alkaline xylanase-containing dedicated enzyme for piglets and a preparation method of the alkaline xylanase-containing dedicated enzyme, and belongs to the technical field of enzyme preparation. Thermophilic bacillus culture, acidic xylanase, beta-glucanase, acid protease, cellulose, amylase, beta-mannase, phytase, Chinese herb extracts, a protective agent and an activating agent are scientifically compounded to prepare the dedicated enzyme, wherein thermophilic bacillus cells in the thermophilic bacillus culture can improve animal body immunity, promote the development of immune organs, promote the maturity of animal intestinal structures and functions, and increase piglet daily gains and feed conversion rates. According to the invention, a safe digestive enzyme, namely the dedicated enzyme, is provided for piglets; the digestion burden is effectively reduced; the utilization rates of the raw materials and the growth rates of the piglets are increased; the environment is effectively protected; the effectiveness of the enzyme preparation can be brought into full play due to the addition of a proper amount of the activating agent; due to the scientific compound of the Chinese herb extracts, not only is the expiration date of the complex enzyme preparation prolonged, but also the immunity of the piglets is improved.