viruses
Encephalitis is a brain infection most often caused by viruses. The immune system tries to fight off a brain infection, just as it tries to fight off other infections. But sometimes this can do more harm than good. The immune systems response may cause swelling in the brain. With no room to expand, the brain pushes against the skull. This may injure the brain and even cause death. Medicines can help fight some viral infections of the brain, but not all infections.