Mechanically, Mg2+ promoted the degradation of Kelch-like ECH-associated protein 1 (Keap1) and the nucleation of nuclear factor erythroid 2-related factor 2 (Nrf2) by up-regulating the expression of sestrin 2 (SESN2) in endothelial cells, thus reducing the elevated levels of oxidative stress in mitochondria and relieving endothelial cell dysfunction under hyperglycemia. This evidence concerns the gene KEAP1 and Hyperglycemia.