Erectile dysfunction Drugs, work by relaxing your muscles and boosting blood flow to your penis, making erections easier to get and maintain.