Microbes are usually believed to have cosmopolitan distributions. However, for estimating the global distributions of microorganisms, discriminating among cryptic species and eliminating undersampling biases are important challenges. We used a novel approach to address these problems and infer the global distribution of a given fungal ecological guild. We collected mushroom-forming fungi from Yakushima, Japan. We sequenced the internal transcribed spacer 2 (ITS2) from these samples and queried their sequences against GenBank. After identifying similar sequences, we tracked down the geographical origins of samples that yielded those sequences. We used Bayesian zero-inflated models to allow for species whose DNA sequences have not yet been deposited in GenBank. Results indicated that the geographical distribution of ectomycorrhizal (ECM) fungi was strongly constrained by host specificity, resulting in the occurrence of these fungi intensively in the neighbouring regions. On the other hand, saprotrophic (SAP) fungi were less constrained by climatic conditions, resulting in a much broader distribution range. We inferred that differences in constraints during colonization between ECM and SAP fungi were responsible for the different geographical distribution ranges. We hypothesize that the degree of host/habitat specificity and the degree of isolation of potentially suitable habitats determine microbial biogeographic patterns.