The invention discloses a botanical insecticide specially used for hylocereus undulatus, and belongs to the technical field of insecticide preparation. The insecticide comprises the following raw materials: Chinese prickly ash, orange peels, African marigold, a potassium permanganate solution, tobacco, cucumber vine, tomato leaves, lightyellow sophora roots, herba coriandri, peppermint, herb of rosemary, wormwood herb, thyme, herb of French marigold, a synergist, a penetrant, a stabilizer, bacillus thuringiensis, metarrhizium anisopliae and yeast. The botanical insecticide specially used for hylocereus undulatus is prepared by extracting effective components. The insecticide provided by the invention has good insecticidal effects on common diseases and insect pests of hylocereus undulatus such as termites, snails, limax, red and yellow spiders, aphids, scarabs and drosophila melanogasters, and no insecticide resistance is generated in the insect pests.