Genetic analysis of the B cell compartment revealed evidence for association of the IL2–IL21 T1D locus with IL-10 production by both memory B cells (P = 6·4 × 10−4) and islet-specific CD4+ T cells (P = 2·9 × 10−3). Here, IL21 is linked to type 1 diabetes mellitus.