The invention discloses a pest-repelling biological organic fertilizer for dragon fruit trees, and belongs to the technical field of preparation of fertilizers. The pest-repelling biological organic fertilizer for dragon fruit trees comprises a tobacco fertilizer, Nerium indicum leaves, onion, Crotalaria mucronata, tea leaves, barnyard manure, bagasse, plant ash, a cake fertilizer, animal manure, household garbage, ammonium dihydrogen phosphate, Aspergillus oryzae, yeast, Bacillus subtilis, mycorrhizal fungi, Azotobacter vinelandii, photosynthetic bacteria and Paecilomyces lilacinus. The tobacco fertilizer, Nerium indicum leaves, onion, Crotalaria mucronata and tea leaves having a pest repelling function are added to the pest-repelling biological organic fertilizer, so the stress resistance of the dragon fruit trees is improved, grubs, mole crickets, termites, ground nematodes and other dragon fruit tree plantation common pests are effectively dispelled, the use of pesticides is reduced, and the quality of dragon fruits is improved.