We show that chemical inhibition of TrkB during the period in which hypothalamic circuitry development results in obesity and sexually dimorphic patterns of gene expression that continue into adulthood. Here, NTRK2 is linked to obesity due to melanocortin 4 receptor deficiency.