Spatially resolved transcriptomics identified the TGFβ pathway, driven primarily by myeloid cells, as the key signal promoting a regulatory state in tumor-infiltrating B cells. Here, TGFB1 is linked to neoplasm.