Reduced Tyk2 gene expression in β-cells due to natural mutation determines susceptibility to virus-induced diabetes. Here, TYK2 is linked to diabetes mellitus.