Encephalitis
Encephalitis can happen when a person gets a bacterial infection, like bacterial meningitis.  It can also be a complication of an infectious disease that a person already has, like syphilis.  This is called "secondary encephalitis."