There is increasing evidence that plant-associated microorganisms play important roles in defending plants against insect herbivores through both direct and indirect mechanisms. While previous research has shown that these microbes can modify the behaviour and performance of insect herbivores and their natural enemies, little is known about their effect on egg parasitoids which utilize oviposition-induced plant volatiles to locate their hosts. In this study, we investigated how root inoculation of sweet pepper (Capsicum annuum) with the plant-beneficial fungi Beauveria bassiana ARSEF 3097 or Trichoderma harzianum T22 influences the olfactory behaviour of the egg parasitoid Trissolcus basalis following egg deposition by its host Nezara viridula. Olfactometer assays showed that inoculation by T. harzianum significantly enhanced the attraction of the egg parasitoid, while B. bassiana had the opposite effect. However, no variation was observed in the chemical composition of plant volatiles. Additionally, fitness-related traits of the parasitoids (wasp body size) were not altered by any of the two fungi, suggesting that fungal inoculation did not indirectly affect host quality. Altogether, our results indicate that plant inoculation with T. harzianum T22 can be used to enhance attraction of egg parasitoids, which could be a promising strategy in manipulating early plant responses against pest species and improving sustainable crop protection. From a more fundamental point of view, our findings highlight the importance of taking into account the role of microorganisms when studying the intricate interactions between plants, herbivores and their associated egg parasitoids.