While caffeine has many beneficial effects, including on lifting mood, a major study found that people who consume caffeine regularly have less chance of having depression.
Studies have shown that regular consumption of caffeine or coffee may actually prevent the onset of depression. More on that later.
That said, be careful you don't take caffeine so late that it prevents you from falling asleep. Sleep deprivation can have a big impact on mental health and can worsen depression. Sleep deprivation can also cause physical health problems, which can exacerbate depression.
How do you get motivated when depressed? Years ago a comedian said she loved being depressed because she slept 20 hours a day and ate ice cream the other four hours. I suppose if she didn’t laugh about this crippling mental illness she would have cried.
If it’s a serious case of clinical depression, you could become so disabled you quit or lose your job, you contemplate or even attempt suicide or you could be overwhelmed by sadness or hopelessness such that you don’t want to do anything.