Here the authors analyse spatial relationships from immunohistochemistry samples prior to ICI therapy and show that CD8 T cell or macrophage proximity to cancer cells is associated with better responses. Here, CD8A is linked to cancer.