•RYGB surgery-related weight loss independently restores hypothalamic leptin signaling and action in diet-induced obesity. This evidence concerns the gene LEP and obesity due to melanocortin 4 receptor deficiency.