An inflammation of the brain caused by viral, bacterial or protozoal infections. The inflammation is the body’s reaction to infection. Swelling occurs that may lead to destruction of tissue. Toxoplasmosis is the most common cause of encephalitis in HIV infection. Conditions like toxoplasmosis rarely occur now, due to effective HIV antiretroviral treatments.