The first large-scale study of recovery and resilience after a death in a friend group — based on analysis of interactions in 15,000 anonymized networks on Facebook — finds that when a friend dies, we get closer to that person’s friends. The social network repairs itself in ways that keep our total connectedness the same.