Nature, Published online: 12 March 2025; doi:10.1038/d41586-025-00734-8Immune cells called natural killer cells can target and eliminate tumours. The gene expression and spatial distribution of the immune cells in the tumour microenvironment indicates whether liver cancer will recur after surgery.