Here the authors show that mutations in Tyk2 gene underlie susceptibility to virus-induced diabetes in mice, due to Tyk2 requirement for antiviral response in insulin-producing cells. This evidence concerns the gene TYK2 and diabetes mellitus.