The invention discloses a preparation method of a compost for ganoderma lucidum cultivation. The preparation method comprises the steps of 1, smashing one or a combination of branches, leaves and shells of jatropha, and then performing biological detoxification, or performing biological detoxification on one of a combination of branches, leaves and shells of jatropha, and then smashing the one or the combination of the branches, the leaves and the shells of jatropha; 2, uniformly mixing and stirring 25-65 percent of the one or the combination of the branches, the leaves and the shells of jatropha subjected to biological detoxification, 20-50 percent of miscellaneous wood chips, cottonseed hulls or xylitol residues, 8-25 percent of wheat bran or rice bran, 0.05-1 percent of monopotassium phosphate and 0.2-3 percent of gypsum powder in water, and controlling the pH value to be in a range of 5.5-7.0 and the water content to be in a range of 65-75 percent, thus obtaining the compost. The compost prepared by the method disclosed by the invention utilizes resources fully, the growth of infectious microbes can be effectively controlled, and insect pests can be controlled; the internal quality of ganoderma lucidum cultured by the compost is higher than that of a product cultured in a field through other composts.