In summary, the present study demonstrates that metformin improves hyperglycemia- and obesity-associated endothelial dysfunction by inhibiting YAP–JNK pathway-related inflammation via activating AMPK. This evidence concerns the gene YAP1 and endothelial dysfunction.