Over a median follow‐up of 1.0 [0.4–2.3] years, new‐onset DM occurred in 306 PD‐1i users (12.6%) and 85 PD‐L1 users; 1399 died without developing new‐onset DM (45.9%). This evidence concerns the gene CD274 and diabetes mellitus.