Food affects how hormones are secreted. For example, overeating sugar will cause a release of insulin and perhaps an over production which, if constant, can lead to weight gain.