Some people who have chlamydia also experience erectile dysfunction (ED), which involves problems getting or maintaining an erection. Chlamydia can infect the prostate gland, leading to prostatitis, pain, and ED. In this article, learn more about the link between this common infection and ED, and treatments for both.