Erectile dysfunction (ED) is a multidimensional sexual disorder that is being increasingly diagnosed in younger men. Although mental illnesses such as depression and anxiety are known risk factors for ED, the association between these conditions and ED has been understudied in young men.