Encephalitis is an inflammation of the brain that can be caused by viral infections or autoimmune responses. It occurs most commonly in children, the elderly, and immunocompromised individuals. Symptoms vary depending on age but may include fever, headache, confusion, seizures, and long-term neurological complications. Diagnosis involves imaging, spinal fluid analysis, and blood tests to identify potential causes. Treatment focuses on supportive care and antiviral medications or antibiotics depending on the suspected cause. Outcomes range from full recovery to permanent neurological deficits and risk of death is highest in cases of prolonged coma or infection with herpes simplex virus.