The prostate gland is a small, walnut-shaped organ located at the base of the bladder in men. It secretes fluid that nourishes your sperm. When you ejaculate, your prostate gland squeezes this fluid into your urethra. It makes up a large portion of your semen. Acute prostatitis is usually caused by the same bacteria that cause urinary tract infections UTIs or sexually transmitted diseases STDs.