Immune checkpoint inhibitors, widely used in the treatment of malignancies, can improve the prognosis of patients, while it also can induce various immune-related adverse events, and type 1 diabetes induced by anti-programmed cell death protein-1 is a rare but severe complication. This evidence concerns the gene PDCD1 and type 1 diabetes mellitus.