Penile erection begins with relaxation of smooth muscle in the penis which increases blood flow in and decreases flow out. Nitric oxide plays a role in prolonged erections known as priapism. Medications that inhibit an enzyme called PDE can prevent breakdown of cGMP and block the effects of nitric oxide, thereby inhibiting smooth muscle relaxation in the penis.