Researchers have found correlations between certain infections and certain mental illnesses, and have speculated the infections may cause (at least partly) the mental illnesses. After reading the book Infectious Madness, I think causality is dubious.
https://www.psychiatrictimes.com/view/infectious-agents-schi...Edit: but then again I believe causality has been established between kidney infections and cognitive impairment