Vitamin D is actually a hormone, and can greatly affect your sleep quality and many other bodily functions.