Depression-related symptoms like sleeplessness or inactivity can make weight loss more difficult. Some commonly prescribed antidepressants can cause you to gain weight as well.
The first step is to get screened for depression. Talk to your doctor about getting a referral to a mental health professional. He or she will be able to investigate further and determine whether you have depression and give you helpful advice for moving forward.