Encephalitis is an acute inflammation of the brain. It can be caused by a bacterial infection such as bacterial meningitis spreading directly to the brain (primary encephalitis), or may be a complication of a current infectious disease like rabies or syphilis (secondary encephalitis).