Maternal experience before and during pregnancy is known to play a key role in offspring development. However, the influence of social cues about disease in the maternal environment has not been explored. We indirectly exposed pregnant mice to infected neighbours by housing them next to non-contagious conspecifics infected with Babesia microti. We examined the effect of this indirect immunological exposure on both the females and their adult offspring. Exposed females had higher levels of serum corticosterone and increased kidney growth compared with those with uninfected neighbours. These exposed females subsequently produced offspring that as adults showed an accelerated immune response to B. microti and less aggression in social groups. We suggest that ambient information regarding disease is used adaptively to maximize offspring survival and reproductive success in a challenging environment. Our results shed light on the impact of social information and maternal effects on life histories, and have important consequences for our understanding of epidemiology and individual disease susceptibility in humans and other animals. They also lead us to question the suitability of some laboratory housing conditions during experimental procedures, which may impact negatively upon both animal welfare and the validity of animal science.