Symbiotic fungi living in plants as endophytes, and in lichens as endolichenic fungi, cause no apparent symptoms to their hosts. They are ubiquitous, ecologically important, hyperdiverse, and represent a rich source of secondary compounds for new pharmaceutical and biocontrol products. Due in part to the lack of visible reproductive structures and other distinctive phenotypic traits for many species, the diversity and phylogenetic affiliations of these cryptic fungi are often poorly known. The goal of this study was to determine the phylogenetic placement of representative endophytes within the Eurotiomycetes (Pezizomycotina, Ascomycota), one of the most diverse and evolutionarily dynamic fungal classes, and to use that information to infer processes of macroevolution in trophic modes. Sequences of a single locus marker spanning the nuclear ribosomal internal transcribed spacer region (nrITS) and 600 base pairs at the 5' end of the nuclear ribosomal large subunit (nrLSU) were obtained from previous studies of >6000 endophytic and endolichenic fungi from diverse biogeographic locations and hosts. We conducted phylum-wide phylogenetic searches using this marker to determine which fungal strains belonged to Eurotiomycetes and the results were used as the basis for a class-wide, seven-locus phylogenetic study focusing on endophytic and endolichenic Eurotiomycetes. Our cumulative supermatrix-based analyses revealed that representative endophytes within Eurotiomycetes are distributed in three main clades: Eurotiales, Chaetothyriales and Phaeomoniellales ord. nov., a clade that had not yet been described formally. This new order, described herein, is sister to the clade including Verrucariales and Chaetothyriales. It appears to consist mainly of endophytes and plant pathogens. Morphological characters of endophytic Phaeomoniellales resemble those of the pathogenic genus Phaeomoniella. This study highlights the capacity of endophytic and endolichenic fungi to expand our understanding of the ecological modes associated with particular clades, and provides a first estimation of their phylogenetic relationships in the Eurotiomycetes.