Fungal communities are species-rich and structured based on evolutionary history of its members and ecological interactions with their abiotic and biotic environments. We study these patterns to understand evolution and ecology of fungal species, especially endophytic ones.