An inflammation of the brain, usually caused by a direct viral infection or a hyper-sensitivity reaction to avirus or foreign protein.