Orchitis is an inflammation of one or both testicles, commonly caused by either a bacterial or viral infection. It is often associated with the mumps virus, but it can also be caused by other pathogens. Orchitis can lead to pain, swelling, and in severe cases, infertility.