Are/have any of you ever been depressed? How did/do you deal with it?

I've read that various foods like eggs and dairy can cause depression, and also lack of nutrients or hormonal imbalances. Anything else?

How on earth does one figure out what the root cause is?