Gray zone lymphoma (GZL), a B-cell lymphoma with features intermediate between large B-cell lymphoma (LBCL) and classic Hodgkin lymphoma (cHL), is a rare and poorly defined entity. Alongside GZL, a subset of Epstein-Barr virus (EBV)–positive diffuse large B-cell lymphoma (DLBCL) has been described with polymorphic/GZL-like morphology (polymorphic-EBV-L). To fill the important gap in our understanding of the pathogenic process underlying these entities, we performed a gene expression study of a large international cohort of GZL and polymorphic-EBV-L, combined with cHL and primary mediastinal large B-cell lymphoma (PMBCL) cases. In an unsupervised principal component analysis, GZL cases presented with intermediate scores in a spectrum between cHL and PMBCL, whereas polymorphic-EBV-L clustered distinctly. The main biological pathways underlying the GZL spectrum were related to cell cycle, reflecting tumor cell content, and extracellular matrix signatures related to the cellular tumor microenvironment. Differential expression analysis and phenotypic characterization of the tumor microenvironment highlighted the predominance of regulatory macrophages in GZL compared with cHL and PMBCL. Two distinct subtypes of GZL were distinguishable that were phenotypically reminiscent of PMBCL and DLBCL, and we observed an association of PMBCL-type GZL with clinical presentation in the “thymic” anatomic niche. In summary, gene expression profiling (GEP) enabled us to add precision to the GZL spectrum, describe the biological distinction compared with polymorphic-EBV-L, and distinguish cases with and without thymic involvement as 2 subgroups of GZL, namely PMBCL-like and DLBCL-like GZL.