So I'm taking this Developmental Psychology class and my professor says a lot about weight gain and weight loss. First off, there are 400 genes that determine body type/size. Also, your body reaches a 'set point' and this has to do with homeostatsis (go back to your HS chem or physiology), basically your body wanting to maintain equilibrium. Therefore, your body wants to hover around a certain weight (plateau?). When you do have a dramatic weight loss it takes TWO YEARS for your body's set point to reset. That's why a lot of people gain the weight back extremely fast.
Take home lesson: after you lose the weight it is essential to maintain it for at least two years!