T cells, macrophages and monocyte-derived macrophages expressing C-X-C motif chemokine ligand 9 (CXCL9) in pancreatic sections of NOD mice and a cancer patient who developed diabetes following the ICI treatments were analysed by immunofluorescence. Here, CXCL9 is linked to diabetes mellitus.