Undertaking behaviour is an essential activity in social insects. Corpses are often recognized by a postmortem change in a chemical signature. Reticulitermes flavipes responded to corpses within minutes of death. This undertaking behaviour did not change with longer postmortem time (24 h) however, R. flavipes exhibited distinctively different behaviours toward dead termites from various origins. Corpses of the congeneric species, Reticulitermes virginicus, were buried onsite by workers with a large group of soldiers guarding the burial site due to the risk of interspecific competition; while dead conspecifics, regardless of colony origin, were pulled back into the holding chamber for nutrient recycling and hygienic purposes. The burial task associated with congeneric corpses was coupled with colony defence and involved ten times more termites than retrieval of conspecific corpses. Our findings suggest elicitation of undertaking behaviour depends on the origin of corpses which is associated with different types of risk.