Insomnia: Reason For Sleepless Nights: Insomnia is caused due to depression and it is Vitamin B12 that regulates the melatonin levels in the human body. It is the hormone that is responsible for regulating the circadian rhythms and sleep patterns among humans. The deficiency of Vitamin B12 results in the above conditions. Stress, anxiety or depression are the reasons for Insomnia.