The immune system may play a role in mental illness, according to a recent study. The immune system may play a role in mental illness, according to a recent study.