Phosphodiesterase type 5 inhibitors (PDE5is) constitute the primary therapeutic option for treating erectile dysfunction (ED). Nevertheless, a substantial proportion of patients, approximately 30%, do not respond to PDE5i treatment. Therefore, new treatment methods are needed. In this study, we identified a pathway that contributes to male erectile function. We show that mechano-regulated YAP/TAZ signaling in smooth muscle cells (SMCs) upregulates adrenomedullin transcription, which relaxed the SMCs to maintain erection. Using single-nucleus RNA sequencing, we investigated how penile erection stretches the SMCs, inducing YAP/TAZ activity. Subsequently, we demonstrate that YAP/TAZ plays a role in erectile function and penile rehabilitation, using genetic lesions and various animal models. This mechanism relies on direct transcriptional regulation of adrenomedullin by YAP/TAZ, which in turn modulates penile smooth muscle contraction. Importantly, conventional PDE5i, which targets NO-cGMP signaling, does not promote erectile function in YAP/TAZ-deficient ED model mice. In contrast, by activating the YAP/TAZ-adrenomedullin cascade, mechanostimulation improves erectile function in PDE5i nonrespondent ED model rats and mice. Furthermore, using clinical retrospective observational data, we found that mechanostimulation significantly promotes erectile function in patients irrespective of PDE5i use. Our studies lay the groundwork for exploring the mechano-YAP/TAZ-adrenomedullin axis as a potential target in the treatment of ED.