Understanding how mortality and fertility are linked is essential to the study of population dynamics. We investigate the fertility response to an unanticipated mortality shock that resulted from the 2004 Indian Ocean tsunami, which killed large shares of the residents of some Indonesian communities but caused no deaths in neighboring communities. Using population-representative multilevel longitudinal data, we identify a behavioral fertility response to mortality exposure, both at the level of a couple and in the broader community. We observe a sustained fertility increase at the aggregate level following the tsunami, which was driven by two behavioral responses to mortality exposure. First, mothers who lost one or more children in the disaster were significantly more likely to bear additional children after the tsunami. This response explains about 13 % of the aggregate increase in fertility. Second, women without children before the tsunami initiated family-building earlier in communities where tsunami-related mortality rates were higher, indicating that the fertility of these women is an important route to rebuilding the population in the aftermath of a mortality shock. Such community-level effects have received little attention in demographic scholarship.