AMP-activated protein kinase, activated by metformin treatment for type 2 diabetes, could directly phosphorylate PD-L1 S195 and further glycosylate PD-L1,135 resulting in PD-L1 anergy. This evidence concerns the gene CD274 and type 2 diabetes mellitus.