The true myrtle, Myrtus communis, is a small perennial evergreen tree that occurs in Europe, Africa, and Asia with a circum-Mediterranean geographic distribution. Unfortunately, the Mediterranean Forests, where M. communis occurs, are critically endangered and are currently restricted to small fragmented areas in protected conservation units. In the present work, we performed, for the first time, a metabarcoding study on the spatial variation of fungal community structure in the foliar endophytome of this endemic plant of the Mediterranean biome, using bipartite network analysis as a model. The local bipartite network of Myrtus communis individuals and their foliar endophytic fungi is very low connected, with low nestedness, and moderately high specialization and modularity. Similar network patterns were also retrieved in both culture-dependent and amplicon metagenomics of foliar endophytes in distinct arboreal hosts in varied biomes. Furthermore, the majority of putative fungal endophytes species were basidiomycete woody saprotrophs of the orders Polyporales, Agaricales, and Hymenochaetales. Altogether, these findings suggest a possible adaptation of these wood-decaying fungi to cope with moisture limitation and spatial scarcity of their primary substrate (dead wood), which are totally consistent with the predictions of the viaphytism hypothesis that wood-decomposing fungi inhabit the internal leaf tissue of forest trees in order to enhance dispersal to substrates on the forest floor, by using leaves as vectors and as refugia, during periods of environmental stress.