However, sometimes depression is caused by an underlying organic issue.
Psychological symptoms almost identical to those of pure psychogenic depression can be caused by vitamin D deficiency. Furthermore, vitamin D deficiency can cause secondary hyperthyroidism and hyperthyroidism can lead to depression. And of course you can then try to treat vitamin D deficiency by simply taking more vitamin D or getting more sunlight exposure.
Things, however, are not always that simple.