Abstract Microbes play a crucial role in the tumor microenvironment, yet the factors governing their presence within tumors remain poorly understood. In this study, we employed advanced in situ spatial-profiling technologies to investigate the relationship between microbial and immune cell heterogeneity in human lung and pancreas cancers. We observed a spatial coupling between microbes and immune cells, which was also replicated in mouse models of pancreatic cancer. Within the tumor, distinct niches characterized by T cell abundance or scarcity exhibited varied microbial diversity and compositions associated with immunologically active and quiescent phenotypes. Interestingly, gut microbiome are similar between mice bearing T cell- enriched or T cell-poor pancreas tumors. Depletion of intra-tumoral bacteria resulted in reduced tumor growth specifically in T cell-poor tumors and altered the phenotype and presence of myeloid and B cells in T cell-enriched tumors, without affecting T cell infiltration. Conversely, depletion of T cells disrupted the immunological state of tumors and led to a decrease in intra-tumoral bacteria. Our findings highlight a tight interplay between microbes and T cells in the tumor microenvironment, where spatially defined immune-microbial communities differentially influence tumor biology. Citation Format: Yan Li, Renee B. Chang, Meredith L. Stone, Yuqing Xue, Heather Coho, Kelly Markowitz, Dhruv Patel, Veronica M. Herrera, Joey H. Li, Devora Delman, Liti Zhang, Shaanti Choi-Bose, Michael Giannone, Jae W. Lee, Gregory Beatty. Spatial coupling of microbes and immune cells shapes the tumor microenvironment in human cancers [abstract]. In: Proceedings of the AACR Special Conference in Cancer Research: Pancreatic Cancer; 2023 Sep 27-30; Boston, Massachusetts. Philadelphia (PA): AACR; Cancer Res 2024;84(2 Suppl):Abstract nr B030.