Viagra, generically known as the medication , is a common treatment primarily intended for treating erectile difficulties . It operates by increasing blood flow to the male organs , which helps men to achieve and maintain an erection sufficient for satisfying relations. While usually safe when used as directed by a qualified doctor, it's important