Nod2 protects mice from inflammation and obesity-dependent liver cancer. Here, NOD2 is linked to obesity due to melanocortin 4 receptor deficiency.