Sildenafil is used to treat male sexual function problems (impotence or erectile dysfunction-ED). In combination with sexual stimulation, sildenafil works by increasing blood flow to the penis to help a man get and keep an erection.
Source: https://www.webmd.com/drugs/2/drug-7418/sildenafil-oral/details