The oriental fruit fly, Bactrocera dorsalis (Diptera: Tephritidae) is a destructive horticultural pest which causes considerable economic losses every year. A collection of microorganisms live within the B. dorsalis gut, and they are involved in its development, physiology, and behavior. However, knowledge regarding the composition and function of the gut mycobiota in B. dorsalis are still limited. Here, we comprehensively characterized the gut mycobiota in B. dorsalis across different developmental stages. High‐throughput sequencing results showed a significant difference in fungal species abundance and diversity among different developmental stages of B. dorsalis. Quantitative polymerase chain reaction and culture‐dependent methods showed that yeast species was the dominant group in the larval stage. We isolated 13 strains of yeast from the larval gut, and found that GF (germ‐free) larvae mono‐associated with strain Hanseniaspora uvarum developed faster than those mono‐associated with other tested fungal strains. Supplementing the larval diet with H. uvarum fully rescued B. dorsalis development, shortened the larval developmental time, and increased adult wing lengths, as well as the body sizes and weights of both pupae and adults. Thus, our study highlights the close interactions between gut fungi, especially H. uvarum, and B. dorsalis. These findings can be applied to the sterile insect technique program to promote host development during mass insect rearing.