Viagra, frequently known as sildenafil , is a medication primarily used to treat erectile dysfunction , also referred to as impotence . It works by assisting men to achieve and sustain a firm erection sufficient for sexual activity . Because it's sometimes associated with sexual performance , Via