Sildenafil is used to treat male sexual function problems (impotence or erectile dysfunction) by blocking a certain enzyme (phosphodiesterase-PDE5) in the body. In combination with sexual stimulation, sildenafil works by helping the blood flow into the penis to achieve and maintain an erection.