A GIPR knockout in either the whole body or selectively in inhibitory GABAergic neurons protects against diet-induced obesity, whereas a knockout in excitatory glutamatergic neurons had a negligible effect. Here, GIPR is linked to obesity due to melanocortin 4 receptor deficiency.