Using experimental communities of grassland species, this study shows that drought-exposure history can accelerate recovery from subsequent drought through increased niche complementarity between species. This transgenerational effect may enhance the sustainability of biodiversity and ecosystem functioning in a future with more frequent droughts.