Sugar will stimulate the production of dopamine and serotonin and these substances are known to give a feeling of happiness and calmness. The release of these neurotransmitters in the brain happens also when alcohol or other recreational drugs are consumed. You may develop a resistance to the effects of sugar in time: the more sugar you eat, the more you will need to get the comforting feeling.