More than 50 years ago, cells were observed to die during insect development via a process that was named 'programmed cell death'. Later, a similar cell death process was found to occur in humans, and the process was renamed 'apoptosis'. In the 1990s, a number of apoptosis-regulating molecules were identified, and apoptosis was found to have essential roles in the immune system. In this Timeline article, we highlight the key events that have demonstrated the importance of programmed cell death processes, including apoptosis and programmed necrosis, in the immune system.