A new study shows that the infections children contract during their childhood are linked to an increase in the risk of mental disorders during childhood and adolescence. This knowledge expands our understanding of the role of the immune system in the development of mental disorders.