When injected into the side of the penis, Alprostadil mimics the natural action of prostaglandins, which are substances that dilate blood vessels and promote circulation. The increased blood flow leads to an erection, typically within 5 to 20 minutes of administration. The effect can last for about 30 to 60 minutes, depending on the individual.