It's a combination of psychology and eating habits. Weight loss depends upon the capacity of your will power. Fixing your regular diet, especially when you have eating habits, isn't easy.
It takes a lot of strength and mental toughness to understand that no matter how weak you are feeling right now, you will be fine.