Purpose: Myelodysplastic syndromes (MDS) are caused by a stem cell failure, but the relationship between immune dysregulation and the course of disease has not yet been analyzed in detail. Experimental design: To get insights into the pathophysiologic and clinical relevance of the histotopography of immune cell subpopulations in this process, the immune cell infiltrate with focus on its spatial distribution was determined by multispectral imaging (MSI) in 147 bone marrow biopsies from MDS or secondary acute myeloid leukemia (sAML) patients and healthy controls (HC). In addition, the data were correlated to genetic alterations and clinical features of these patients including therapy response. Results: A high inter-tumoral heterogeneity in the frequency and spatial distribution of CD3+CD8+, CD3+CD8-, CD3+FOXP3+ T cell subsets, MUM1p+CD3- post-germinal B/plasma cells and CD34+ blasts was found in MDS and sAML samples. In HC only few B cells/plasma cells, but no T cell subpopulations were detected in the proximity to CD34+ blasts. In contrast, the frequency of these lymphocytes was increased in proximity to CD34+ blasts in both MDS and sAML independent of the karyotype, genetic alterations frequently detected in MDS, clinical risk stratification systems or treatment response to hypomethylating agents. Furthermore, an increased frequency of CD3+CD8+ T cells and MUM1p+ CD3- B cells was found in responders to epigenetic drugs. Conclusions: Thus, we conclude that (i) T cell subsets do not belong to the normal stem cell niche, (ii) the presence of T and B cell subpopulations not directly affect the course of MDS, (iii) lymphocytes in the proximity to CD34+ blasts might indicate defective stem cell properties and (iv) the number of lymphocytes is a predictor of therapy response to hypomethylating agents.