Obesity is a endocrine disorder.
Sugar -- it so happens -- majorly screws up the endocrine system. Other things do too... but sugar is the biggie.