All living organisms must eventually die, though in some cases their death can bring life‐giving opportunities. Few studies, however, have experimentally tested how animals capitalize on conspecific death and why this specialization would evolve. Here, we conducted experiments on the phylogenetically most closely‐related marine and terrestrial hermit crabs to investigate the evolution of responses to death during the sea‐to‐land transition. In the sea, death of both conspecifics and heterospecifics generates unremodeled shells needed by marine hermit crabs. In contrast, on land, terrestrial hermit crabs are specialized to live in architecturally remodeled shells, and the sole opportunity to acquire these essential resources is conspecific death. We experimentally tested these different species’ responsiveness to the scent of conspecific versus heterospecific death, predicting that conspecific death would have special attractive value for the terrestrial species. We found the terrestrial species was overwhelmingly attracted to conspecific death, rapidly approaching and forming social groupings around conspecific death sites that dwarfed those around heterospecific death sites. This differential responsiveness to conspecific versus heterospecific death was absent in marine species. Our results thus reveal that on land a reliance on resources associated exclusively with conspecifics has favored the evolution of an extreme collective attraction to conspecific death.