Prostatitis is inflammation, or swelling, of the prostate. There may be an infection in the prostate gland.