Plant volatile organic compounds (VOCs) modified by plant-associated microbes can attract or repel the oviposition of herbivores. Here, we explored the effects of three different fungi on apples' VOCs and the cascading impacts on the oviposition preference of yellow peach moth [YPM, Conogethes punctiferalis (Guenée)]. Among Penicillium crustosum-infected apples (PCA), Rhizopus oryzae-infected apples (ROA), Colletotrichum gloeosporioides-infected apples (CGA) and healthy apples (HA), mated YPM females preferred to oviposit eggs on ROA and CGA, and showed significant attractiveness to VOCs from PCA, ROA, and CGA under laboratory conditions. The VOCs analyses showed that there were significant differences between fungi-infected apples (ROA, CGA) and control treatments (mechanically damaged apples (MDA), HA) in terms of the relative contents of 13 VOCs. The relative contents of ethyl 2-methylbutyrate, ethyl caprylate, estragole, ethyl hexanoate in ROA and CGA were higher than those in MDA. The relative content of isopropyl 2-methylbutyrate in ROA was significantly higher than those in HA and CGA. The relative contents of 2-methylbutyl acetate, butyl 2-methylbutyrate, hexyl 2-methylbutyrate, amyl hexanoate, hexyl hexanoate, (E, E)-α-farnesene in ROA and CGA were lower than those in HA. The relative content of hexyl acetate in ROA and CGA was significantly higher than that in MDA, but lower than that in HA. Additionally, 10 fungi-induced VOCs were detected in ROA and/or CGA. When 20 VOCs from ROA and/or CGA were tested as individuals or mixed blends in Y-tube olfactometer assays, mated YPM females preferred amyl 2-methylbutyrate, isoamyl 2-methylbutyrate, isopropyl 2-methylbutyrate, hexyl propionate (common VOCs in ROA, CGA, and HA), and heptacosane (a fungi-induced VOC in ROA), but no significant preferences were observed between individual compounds and mixed blends, except for hexyl propionate. Different fungi infection increased the relative contents of common VOCs from healthy and fungi-infected apples, which ultimately resulted in the significant attractiveness for the oviposition of mated YPM females. This study clarified why fungi-infected apples were more attractive to YPMs than healthy apples and screened out the crucial VOCs for YPM oviposition. © 2023 Society of Chemical Industry.