Encephalitis is inflammation of the brain that causes problems with brain and spinal cord function. It is often caused by a viral infection, though bacteria and other non-infectious conditions can also cause it. Symptoms include headache, neck stiffness, sleepiness, seizures, and changes in mental status. Diagnosis involves neurological exam, imaging like MRI, and tests of cerebral spinal fluid. Treatment focuses on reducing swelling, controlling infections and seizures, and providing supportive care. Prevention involves vaccination, hygiene, and protection from mosquitoes and ticks that can transmit viruses.