The pleiotropic benefits of statins in cardiovascular diseases that are independent of their lipid-lowering effects have been well documented, but the underlying mechanisms remain elusive. Here we show that simvastatin significantly improves human induced pluripotent stem cell-derived endothelial cell functions in both baseline and diabetic conditions by reducing chromatin accessibility at transcriptional enhanced associate domain elements and ultimately at endothelial-to-mesenchymal transition (EndMT)-regulating genes in a yes-associated protein (YAP)-dependent manner. Inhibition of geranylgeranyltransferase (GGTase) I, a mevalonate pathway intermediate, repressed YAP nuclear translocation and YAP activity via RhoA signaling antagonism. We further identified a previously undescribed SOX9 enhancer downstream of statin–YAP signaling that promotes the EndMT process. Thus, inhibition of any component of the GGTase–RhoA–YAP–SRY box transcription factor 9 (SOX9) signaling axis was shown to rescue EndMT-associated endothelial dysfunction both in vitro and in vivo, especially under diabetic conditions. Overall, our study reveals an epigenetic modulatory role for simvastatin in repressing EndMT to confer protection against endothelial dysfunction. Liu et al. show that statin enhances cardiovascular disease protection through epigenetic modulation of YAP–SOX9 signaling, improving endothelial function and offering new therapeutic strategies.