Brain infections are caused by bacteria, viruses, fungi, or parasites that manage to reach the central nervous system, either by crossing the protective barrier around the brain or by traveling along nerves directly into brain tissue. The specific pathogen and how it gets there determine whether the infection becomes meningitis (affecting the membranes surrounding the brain), encephalitis (infecting brain tissue itself), or a brain abscess (a walled-off pocket of pus).
How Pathogens Reach the Brain
The brain is normally shielded by the blood-brain barrier, a tightly sealed layer of cells lining the blood vessels in the brain that blocks most microorganisms from entering. When infections do take hold, it means a pathogen has found a way past this defense. There are three main routes.
In transcellular traversal, the pathogen passes directly through the barrier cells themselves without disrupting the seals between them. In paracellular traversal, it slips between cells, sometimes breaking apart the tight junctions that hold them together. The third method, sometimes called the “Trojan horse” mechanism, is especially clever: the pathogen hitches a ride inside an immune cell that is allowed to cross the barrier normally, smuggling itself into brain tissue undetected.
Some viruses skip the blood-brain barrier entirely. Herpes simplex virus, for example, can travel along the trigeminal or olfactory nerves, moving from an infection in the mouth or nose directly into the brain along nerve fibers.
Bacterial Causes
Bacteria are responsible for some of the most dangerous brain infections. Bacterial meningitis can progress from mild symptoms to life-threatening illness within hours. The leading bacterial causes in the United States include Streptococcus pneumoniae (the pneumococcus), Group B Streptococcus, E. coli, Haemophilus influenzae, Neisseria meningitidis (meningococcus), and Listeria monocytogenes. Tuberculosis bacteria can also cause meningitis, though this is less common in developed countries.
Which bacterium poses the greatest threat depends on age and health status. Newborns are most vulnerable to Group B Strep and E. coli. Older adults and people with weakened immune systems face higher risk from Listeria, which is found in certain foods like unpasteurized cheese and deli meats. Meningococcus is the strain most associated with outbreaks in college dormitories and military barracks, where close quarters allow the bacteria to spread through respiratory droplets.
Viral Causes
Viruses are the most frequent cause of brain infections overall. Herpes simplex virus type 1 (HSV-1) is the single most common cause of sporadic encephalitis worldwide, responsible for roughly 90% of herpes-related brain infections. HSV-2 causes most of the remaining cases and is a particular concern in newborns, who can contract it during delivery. All human herpes viruses except one (HHV-8) have been linked to encephalitis.
HSV-1 can reach the brain through multiple pathways. It may travel along nerves from an initial cold sore infection in the mouth. It can reactivate from a previous infection and follow the same nerve pathways a second time. Or it can reactivate from a dormant state already present in brain tissue, meaning the virus was silently residing there from a prior infection.
Beyond herpes, other viral causes include enteroviruses (a common cause of mild meningitis, especially in children), West Nile virus (spread by mosquitoes), rabies virus (spread through animal bites), and several mosquito- or tick-borne viruses. HIV can also directly infect the brain, causing a slow cognitive decline if untreated.
Fungal and Parasitic Causes
Fungal brain infections are uncommon in healthy people but pose a serious threat to anyone with a weakened immune system. Fungi that can cause meningitis include Cryptococcus, Coccidioides, Histoplasma, Blastomyces, and Candida. Many of these organisms live in soil or bird droppings. People get infected by breathing in fungal spores, which first establish a lung infection and then spread through the bloodstream to the brain.
Candida, a yeast that normally lives in the gut and on the skin without causing problems, can enter the bloodstream in hospitalized patients, particularly those with central IV lines or recent abdominal surgery, and occasionally reach the brain. Cryptococcus is one of the leading causes of meningitis in people with advanced HIV infection.
Parasitic brain infections are rare in most developed countries but can be devastating. Toxoplasma gondii, a parasite found in cat feces and undercooked meat, typically causes no symptoms in healthy people but can form brain abscesses in those with suppressed immune systems. Naegleria fowleri, the so-called “brain-eating amoeba,” lives in warm freshwater and enters through the nose during swimming, causing a rapid and almost always fatal infection.
Infections That Spread From Nearby
Not every brain infection arrives through the bloodstream or nerves. Some start in a neighboring structure and migrate the short distance into the skull. Sinus infections, ear infections, and dental infections can all serve as launching points for a brain abscess.
In one documented pattern, bacteria from a sinus infection traveled directly into the frontal lobe of the brain, forming a 40-millimeter abscess. The patient had been diagnosed with sinusitis just two weeks before the brain abscess was discovered. Even old skull fractures that have fully healed can leave subtle weak points in the bone, allowing inflammation from a nearby sinus or dental infection to advance into the cranium. Treatment for these abscesses typically requires weeks of antibiotics, often eight weeks or longer, sometimes extended to 11 weeks or more depending on how the infection responds.
Surgery and Trauma as Entry Points
Any time the skull is opened, whether from surgery or a traumatic injury, bacteria can gain direct access to the brain. The average rate of surgical site infection after neurological procedures is about 5%, though reported rates range from 1% to nearly 12% depending on the facility and how long patients are monitored afterward. Staphylococcus aureus, a common skin bacterium, is one of the organisms most frequently found at the surgical site.
Traumatic skull fractures carry a similar risk. Open fractures that expose brain tissue to the environment, penetrating injuries, and compound fractures all allow bacteria that would normally stay on the skin or in the air to colonize brain tissue directly.
Who Is Most Vulnerable
A healthy immune system stops the vast majority of organisms from reaching or surviving in the brain. When that defense is compromised, the risk of brain infection rises sharply. The groups at highest risk include people with HIV (especially with low immune cell counts), organ transplant recipients on immunosuppressive drugs, cancer patients undergoing chemotherapy, and those receiving stem cell transplants.
Among cancer patients, the major vulnerabilities are low white blood cell counts, disruption of natural barriers (from surgery or medical devices), and impaired immune cell function. Patients who receive stem cell transplants from a donor face some of the highest risk, with brain infection rates reaching up to 15%. Heart and intestinal transplant recipients, who require the heaviest ongoing immunosuppression, are the most prone to late-developing brain infections.
The specific type of immune deficiency shapes which infections are most likely. People with impaired T-cell immunity (as in HIV) are vulnerable to Toxoplasma, Cryptococcus, and JC virus, which causes a rare but frequently fatal brain disease called progressive multifocal leukoencephalopathy. Those with low white blood cell counts after chemotherapy face greater risk from bacterial and fungal infections, including mucormycosis, a particularly aggressive mold infection.
Diabetes, chronic alcohol use, and malnutrition also weaken the body’s ability to fight off infections and are associated with higher rates of brain abscess. Age plays a role at both ends of the spectrum: newborns have immature immune systems, and older adults often have declining immune function combined with other chronic health conditions.