Early life adversity is associated with lifelong impacts on health and survival in humans and other long-lived mammals. Infectious disease is a leading cause of morbidity and mortality in wild primates, but the impacts of early disease exposure on fitness are poorly understood. We used retrospective health data to investigate the consequences of early exposure to respiratory disease outbreaks on lifetime survival in three communities of wild chimpanzees (Pan troglodytes) in Gombe National Park, Tanzania and Kibale National Park, Uganda (N=15,048 risk-years from 290 individuals). During early infancy (age 0-1), each exposure was associated with a 2.50-fold increased risk of death. Exposure count had no effect on survival during late infancy (age 1-5) or juvenility (age 5-10). However, for individuals that survived to age 10, each juvenile exposure was associated with a 33% reduced risk of death after age 10. Our data suggest that post-weaning exposures may strengthen the immune system, thereby reducing mortality risk from future infection. Exposures encountered in the first year of life may also act as a filter, enhancing adult survival via viability selection. These age-dependent effects of early health insults in chimpanzees provide new insight into the evolution of human resilience to high pathogen environments.