Encephalitis is an inflammation, or swelling, of the brain. It is usually caused by a viral or bacterial infection.