Withdrawal from caffeine can be a problem, characterized by headaches and depression for those who are trying to quit.Foods Can Cause Depression and AnxietyMany other substances can affect our tendency to be anxious or depressed, including some foods we eat.